Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001, allocations: 43.88 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2624, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005137/0.2676, allocations: 4.233 MB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.2697, allocations: 1.18 MB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004061/0.2701, allocations: 8 kB / 405.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.2705, allocations: 110.9 kB / 405.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004782/0.2709, allocations: 186.3 kB / 406 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006635/0.2716, allocations: 327.5 kB / 406.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.2727, allocations: 1.109 MB / 407.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004059/0.2731, allocations: 270.6 kB / 407.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004818/0.2736, allocations: 406.8 kB / 408 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005273/0.2742, allocations: 470.2 kB / 408.5 MB, free: 500 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.2744, allocations: 116 kB / 408.6 MB, free: 384 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.2745, allocations: 120 kB / 408.7 MB, free: 264 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.2747, allocations: 223.3 kB / 409 MB, free: 40 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005579/0.2753, allocations: 446.2 kB / 409.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.2764, allocations: 1.229 MB / 410.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2764, allocations: 0 / 410.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2765, allocations: 0 / 410.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.362e-05/0.2765, allocations: 0 / 410.6 MB, free: 14.37 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003035/0.2795, allocations: 1.285 MB / 411.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2796, allocations: 8.031 kB / 411.9 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.2797, allocations: 102.6 kB / 412 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.2799, allocations: 88.42 kB / 412.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.2806, allocations: 486 kB / 412.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.2806, allocations: 41.69 kB / 412.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.2807, allocations: 56.38 kB / 412.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.2828, allocations: 0.9682 MB / 413.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.2829, allocations: 0 / 413.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.987e-05/0.2829, allocations: 28 kB / 413.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.283, allocations: 16 kB / 413.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00278/0.2857, allocations: 1.007 MB / 414.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004415/0.2902, allocations: 3.193 MB / 417.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.2924, allocations: 0.9052 MB / 418.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.2936, allocations: 445.8 kB / 419.2 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.2936, allocations: 16.48 kB / 419.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.2948, allocations: 469 kB / 419.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.685e-06/0.2948, allocations: 4 kB / 419.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003093/0.2979, allocations: 1.096 MB / 420.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/0.2981, allocations: 372.3 kB / 421.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007825/0.2989, allocations: 0.5772 MB / 421.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.278e-05/0.299, allocations: 37.7 kB / 421.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.2992, allocations: 380.4 kB / 422.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.2994, allocations: 174.5 kB / 422.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/0.2996, allocations: 146.6 kB / 422.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2998, allocations: 370.8 kB / 422.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.3009, allocations: 405.6 kB / 423.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.3024, allocations: 0.6772 MB / 423.9 MB, free: 480 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002419/0.3048, allocations: 0.9778 MB / 424.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3048, allocations: 0 / 424.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002919/0.3077, allocations: 1.138 MB / 426 MB, free: 14.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.794e-05/0.3078, allocations: 66.06 kB / 426.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.3078, allocations: 8 kB / 426.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.3079, allocations: 12.28 kB / 426.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.3089, allocations: 219.6 kB / 426.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.3089, allocations: 11.94 kB / 426.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.3101, allocations: 195.2 kB / 426.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.263e-05/0.3102, allocations: 32 kB / 426.5 MB, free: 13.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003408/0.3106, allocations: 230 kB / 426.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.3107, allocations: 71.58 kB / 426.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.3108, allocations: 70.41 kB / 426.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3109, allocations: 4 kB / 426.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.3109, allocations: 0 / 426.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3109, allocations: 3.938 kB / 426.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/0.3149, allocations: 1.673 MB / 428.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.3149, allocations: 4 kB / 428.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/0.3158, allocations: 147.7 kB / 428.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.3158, allocations: 11.92 kB / 428.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.861e-05/0.3159, allocations: 11.98 kB / 428.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.3159, allocations: 0 / 428.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.3159, allocations: 7.938 kB / 428.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.3193, allocations: 1.3 MB / 430.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002017/0.3195, allocations: 152.6 kB / 430.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.3197, allocations: 16.06 kB / 430.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007941/0.3205, allocations: 103.8 kB / 430.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.3206, allocations: 52.31 kB / 430.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.3207, allocations: 20 kB / 430.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006515/0.3213, allocations: 402.8 kB / 430.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3213, allocations: 0 / 430.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006601/0.322, allocations: 179.8 kB / 431 MB, free: 9.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003494/0.3255, allocations: 1.867 MB / 432.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002542/0.3281, allocations: 0.9968 MB / 433.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3281, allocations: 0 / 433.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.3291, allocations: 411 kB / 434.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.3298, allocations: 114.2 kB / 434.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.3411, allocations: 6.481 MB / 440.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.3415, allocations: 0.8785 MB / 441.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004123/0.342, allocations: 88.86 kB / 441.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00039/0.3424, allocations: 231.4 kB / 442 MB, free: 13.77 MB / 366.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3424, allocations: 0 / 442 MB, free: 13.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03358/0.376, allocations: 14.38 MB / 456.4 MB, free: 15.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.724/9.1, allocations: 11.08 kB / 456.4 MB, free: 15.52 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-11 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches