Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 56.14 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1043, allocations: 53.38 MB / 426.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01463/0.1189, allocations: 14.07 MB / 440.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.24/0.3589, allocations: 20.35 MB / 460.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.3611, allocations: 194.7 kB / 461 MB, free: 6.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003233/0.3643, allocations: 1.119 MB / 462.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007986/0.3723, allocations: 2.295 MB / 464.4 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00621/0.3785, allocations: 1.431 MB / 465.8 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01117/0.3897, allocations: 6.453 MB / 472.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007412/0.3905, allocations: 252 kB / 472.5 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002332/0.3928, allocations: 1.107 MB / 473.6 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.3947, allocations: 1.055 MB / 474.7 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003155/0.395, allocations: 70.03 kB / 474.7 MB, free: 1.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005853/0.4009, allocations: 1.471 MB / 476.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005395/0.4014, allocations: 305 kB / 476.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002143/0.4035, allocations: 1.299 MB / 477.8 MB, free: 204 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008999/0.4125, allocations: 3.66 MB / 481.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4125, allocations: 4 kB / 481.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4126, allocations: 0 / 481.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001356/0.4127, allocations: 0 / 481.5 MB, free: 14.44 MB / 382.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.007683/0.4204, allocations: 3.636 MB / 485.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.4204, allocations: 10.56 kB / 485.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001492/0.4206, allocations: 99.62 kB / 485.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007183/0.4213, allocations: 389 kB / 485.6 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004606/0.4259, allocations: 2.525 MB / 488.1 MB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.4259, allocations: 30.75 kB / 488.1 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.4261, allocations: 54.38 kB / 488.2 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.4275, allocations: 0.7067 MB / 488.9 MB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.4275, allocations: 4.875 kB / 488.9 MB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/0.4276, allocations: 15.81 kB / 488.9 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.674e-05/0.4276, allocations: 20.48 kB / 488.9 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.4293, allocations: 0.7958 MB / 489.7 MB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005948/0.4352, allocations: 2.883 MB / 492.6 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.4365, allocations: 0.6295 MB / 493.3 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009962/0.4375, allocations: 0.5737 MB / 493.8 MB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03332/0.4708, allocations: 30.73 MB / 0.5123 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008174/0.4716, allocations: 365.7 kB / 0.5126 GB, free: 3.555 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.716e-06/0.4717, allocations: 0 / 0.5126 GB, free: 3.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003768/0.4754, allocations: 1.39 MB / 0.514 GB, free: 2.141 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.4755, allocations: 63.39 kB / 0.514 GB, free: 2.066 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004221/0.4797, allocations: 2.796 MB / 0.5168 GB, free: 15.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001435/0.4798, allocations: 37.7 kB / 0.5168 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001367/0.4812, allocations: 1.404 MB / 0.5182 GB, free: 13.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.4815, allocations: 170.6 kB / 0.5183 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003535/0.4818, allocations: 222.4 kB / 0.5185 GB, free: 13.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.482, allocations: 345.8 kB / 0.5189 GB, free: 13.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/0.4826, allocations: 237.8 kB / 0.5191 GB, free: 12.83 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009087/0.4835, allocations: 0.5852 MB / 0.5197 GB, free: 12.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.4851, allocations: 0.8763 MB / 0.5205 GB, free: 11.03 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.4852, allocations: 4 kB / 0.5205 GB, free: 11.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002987/0.4881, allocations: 1.286 MB / 0.5218 GB, free: 9.723 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.4882, allocations: 11.98 kB / 0.5218 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001158/0.4883, allocations: 80 kB / 0.5219 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006085/0.4889, allocations: 277.2 kB / 0.5221 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005948/0.4895, allocations: 171.6 kB / 0.5223 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.4906, allocations: 0.8764 MB / 0.5232 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4923, allocations: 119.2 kB / 0.5233 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.4924, allocations: 67.94 kB / 0.5233 GB, free: 8.105 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.0008872/0.4933, allocations: 413.5 kB / 0.5237 GB, free: 7.691 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006818/0.494, allocations: 387.4 kB / 0.5241 GB, free: 7.312 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.4971, allocations: 1.26 MB / 0.5253 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.4972, allocations: 4 kB / 0.5253 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4972, allocations: 4 kB / 0.5253 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4972, allocations: 0 / 0.5253 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004915/0.5021, allocations: 2.185 MB / 0.5275 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/0.5022, allocations: 72 kB / 0.5275 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.5025, allocations: 59.88 kB / 0.5276 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000533/0.5031, allocations: 272.1 kB / 0.5279 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.043e-05/0.5031, allocations: 28 kB / 0.5279 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009981/0.5041, allocations: 0.8685 MB / 0.5287 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5041, allocations: 4.031 kB / 0.5287 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.5066, allocations: 1.143 MB / 0.5299 GB, free: 1.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/0.5079, allocations: 478.5 kB / 0.5303 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004315/0.5084, allocations: 13 kB / 0.5303 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007514/0.5091, allocations: 39.88 kB / 0.5304 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.5093, allocations: 63.95 kB / 0.5304 GB, free: 0.668 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.607e-05/0.5094, allocations: 39.98 kB / 0.5305 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003/0.5124, allocations: 1.82 MB / 0.5322 GB, free: 14.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5124, allocations: 0 / 0.5322 GB, free: 14.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001923/0.5143, allocations: 0.5657 MB / 0.5328 GB, free: 14.24 MB / 446.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.003942/0.5182, allocations: 2.372 MB / 0.5351 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.5203, allocations: 0.8223 MB / 0.5359 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5203, allocations: 0 / 0.5359 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009991/0.5213, allocations: 468.4 kB / 0.5364 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/0.5245, allocations: 0.5897 MB / 0.5369 GB, free: 9.914 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02768/0.5522, allocations: 16.04 MB / 0.5526 GB, free: 9.316 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.5534, allocations: 1.608 MB / 0.5542 GB, free: 7.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.5546, allocations: 390.9 kB / 0.5545 GB, free: 7.293 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/0.5558, allocations: 1.124 MB / 0.5556 GB, free: 6.168 MB / 462.1 MB Notification: Performance of SimCode: time 1.223e-06/0.5558, allocations: 0 / 0.5556 GB, free: 6.168 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1207/0.6765, allocations: 62.53 MB / 0.6167 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.67/19.34, allocations: 7.938 kB / 0.6167 GB, free: 7.918 MB / 0.5137 GB " [Timeout remaining time 641] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.016413446050137]