Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 51.92 kB / 365.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01446/0.1178, allocations: 14.06 MB / 431.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.228/0.3459, allocations: 20.31 MB / 452.1 MB, free: 6.461 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002394/0.3483, allocations: 192.4 kB / 452.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003384/0.3517, allocations: 1.127 MB / 453.5 MB, free: 6.402 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007411/0.3591, allocations: 2.289 MB / 455.7 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005241/0.3643, allocations: 1.435 MB / 457.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.3755, allocations: 6.38 MB / 463.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007588/0.3762, allocations: 247 kB / 463.8 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.3783, allocations: 1.106 MB / 464.9 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001632/0.3799, allocations: 1.057 MB / 466 MB, free: 3.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.3801, allocations: 70.12 kB / 466 MB, free: 3.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004656/0.3848, allocations: 1.463 MB / 467.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004137/0.3852, allocations: 310.6 kB / 467.8 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001976/0.3872, allocations: 1.294 MB / 469.1 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007199/0.3944, allocations: 3.651 MB / 472.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3944, allocations: 1.031 kB / 472.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3944, allocations: 0 / 472.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001045/0.3945, allocations: 0 / 472.7 MB, free: 1.875 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006419/0.4009, allocations: 3.631 MB / 476.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.401, allocations: 10.28 kB / 476.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.4011, allocations: 93.72 kB / 476.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00064/0.4017, allocations: 391.3 kB / 476.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004178/0.4059, allocations: 2.536 MB / 479.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.406, allocations: 35 kB / 479.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.4061, allocations: 47.78 kB / 479.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.4076, allocations: 0.7035 MB / 480.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.4076, allocations: 1.281 kB / 480.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.844e-05/0.4077, allocations: 20.8 kB / 480.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.4077, allocations: 18.77 kB / 480.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.4093, allocations: 0.7935 MB / 481 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005796/0.4151, allocations: 2.898 MB / 483.9 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.4164, allocations: 0.6292 MB / 484.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.4174, allocations: 0.5742 MB / 485.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03191/0.4493, allocations: 30.09 MB / 0.5031 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000814/0.4501, allocations: 357.7 kB / 0.5035 GB, free: 9.723 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.4501, allocations: 4 kB / 0.5035 GB, free: 9.719 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003663/0.4538, allocations: 1.406 MB / 0.5048 GB, free: 8.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.4538, allocations: 63.34 kB / 0.5049 GB, free: 8.215 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003905/0.4577, allocations: 2.796 MB / 0.5076 GB, free: 5.398 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.828e-05/0.4578, allocations: 37.7 kB / 0.5077 GB, free: 5.355 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.4591, allocations: 1.398 MB / 0.509 GB, free: 3.953 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.4592, allocations: 177 kB / 0.5092 GB, free: 3.785 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003259/0.4596, allocations: 226.4 kB / 0.5094 GB, free: 3.559 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4597, allocations: 341.9 kB / 0.5098 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006189/0.4603, allocations: 237.9 kB / 0.51 GB, free: 2.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000885/0.4612, allocations: 0.5896 MB / 0.5106 GB, free: 2.227 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.4628, allocations: 0.8859 MB / 0.5114 GB, free: 1.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.4628, allocations: 4 kB / 0.5114 GB, free: 1.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00273/0.4655, allocations: 1.281 MB / 0.5127 GB, free: 15.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.4655, allocations: 12 kB / 0.5127 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.4657, allocations: 80.69 kB / 0.5128 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005965/0.4663, allocations: 276.8 kB / 0.513 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006073/0.4669, allocations: 167.7 kB / 0.5132 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.468, allocations: 0.8802 MB / 0.514 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.4696, allocations: 115.4 kB / 0.5142 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.4697, allocations: 60 kB / 0.5142 GB, free: 14.28 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0009067/0.4706, allocations: 426.1 kB / 0.5146 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007966/0.4714, allocations: 388.7 kB / 0.515 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.4747, allocations: 1.27 MB / 0.5162 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.4747, allocations: 4 kB / 0.5162 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4747, allocations: 0 / 0.5162 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4747, allocations: 3.984 kB / 0.5162 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004998/0.4797, allocations: 2.188 MB / 0.5184 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/0.4798, allocations: 68 kB / 0.5184 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.4801, allocations: 72 kB / 0.5185 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005474/0.4807, allocations: 257.9 kB / 0.5188 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-05/0.4808, allocations: 39.98 kB / 0.5188 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.4818, allocations: 0.8569 MB / 0.5196 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.4818, allocations: 0 / 0.5196 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.4843, allocations: 1.135 MB / 0.5207 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.4856, allocations: 486.4 kB / 0.5212 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007979/0.4864, allocations: 11.98 kB / 0.5212 GB, free: 6.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.4876, allocations: 35.91 kB / 0.5212 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.4877, allocations: 63.88 kB / 0.5213 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.279e-05/0.4878, allocations: 40 kB / 0.5213 GB, free: 6.805 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003377/0.4912, allocations: 1.82 MB / 0.5231 GB, free: 4.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4912, allocations: 0 / 0.5231 GB, free: 4.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001986/0.4932, allocations: 0.5696 MB / 0.5237 GB, free: 4.41 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00406/0.4973, allocations: 2.372 MB / 0.526 GB, free: 2.148 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.4993, allocations: 0.8152 MB / 0.5268 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4993, allocations: 0 / 0.5268 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009945/0.5003, allocations: 468.1 kB / 0.5272 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003805/0.5041, allocations: 0.5951 MB / 0.5278 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03048/0.5346, allocations: 16.04 MB / 0.5435 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001666/0.5362, allocations: 1.6 MB / 0.545 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.5376, allocations: 394.9 kB / 0.5454 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/0.5391, allocations: 1.116 MB / 0.5465 GB, free: 12.52 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5391, allocations: 0 / 0.5465 GB, free: 12.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1248/0.6639, allocations: 62.51 MB / 0.6076 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/19.32, allocations: 8.062 kB / 0.6076 GB, free: 14.37 MB / 0.5137 GB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98724e-11 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.981993474066257]