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.001371/0.001371, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.00158/0.00158, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.46/1.46, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.00187/0.00187, allocations: 63.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1053, allocations: 53.32 MB / 426.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.2168/0.3221, allocations: 14.06 MB / 440.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02589/0.348, allocations: 20.36 MB / 461.1 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002984/0.351, allocations: 124.6 kB / 461.2 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003613/0.3546, allocations: 1.127 MB / 462.3 MB, free: 4.191 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.3648, allocations: 2.292 MB / 464.6 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006467/0.3712, allocations: 1.427 MB / 466 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.3835, allocations: 6.457 MB / 472.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007233/0.3842, allocations: 249.3 kB / 472.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002119/0.3864, allocations: 1.072 MB / 473.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001912/0.3883, allocations: 1.052 MB / 474.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002454/0.3885, allocations: 70.81 kB / 474.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005091/0.3936, allocations: 1.475 MB / 476.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004637/0.3941, allocations: 314.9 kB / 476.7 MB, free: 13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.3962, allocations: 1.294 MB / 478 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.4031, allocations: 3.653 MB / 481.7 MB, free: 9.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4031, allocations: 4 kB / 481.7 MB, free: 9.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4031, allocations: 4 kB / 481.7 MB, free: 9.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.878e-05/0.4032, allocations: 0 / 481.7 MB, free: 9.734 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.007152/0.4104, allocations: 3.626 MB / 485.3 MB, free: 6.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4104, allocations: 8.031 kB / 485.3 MB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.4105, allocations: 94.52 kB / 485.4 MB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005015/0.411, allocations: 389.6 kB / 485.8 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00434/0.4154, allocations: 2.539 MB / 488.3 MB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.4154, allocations: 29 kB / 488.3 MB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.4155, allocations: 51.95 kB / 488.4 MB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.4169, allocations: 0.6992 MB / 489.1 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.4169, allocations: 0.5625 kB / 489.1 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.417, allocations: 20 kB / 489.1 MB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.417, allocations: 19.98 kB / 489.1 MB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.4185, allocations: 0.7928 MB / 489.9 MB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005584/0.4241, allocations: 2.888 MB / 492.8 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.4254, allocations: 0.6351 MB / 493.5 MB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.4264, allocations: 0.5797 MB / 494 MB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03526/0.4617, allocations: 30.72 MB / 0.5125 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007637/0.4624, allocations: 361.6 kB / 0.5128 GB, free: 10.06 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.4624, allocations: 0 / 0.5128 GB, free: 10.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003299/0.4657, allocations: 1.401 MB / 0.5142 GB, free: 8.629 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.4658, allocations: 63.41 kB / 0.5142 GB, free: 8.555 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/0.4698, allocations: 2.799 MB / 0.517 GB, free: 5.734 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.4699, allocations: 37.69 kB / 0.517 GB, free: 5.691 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001343/0.4712, allocations: 1.392 MB / 0.5184 GB, free: 4.293 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/0.4715, allocations: 178.5 kB / 0.5185 GB, free: 4.117 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/0.4718, allocations: 226.4 kB / 0.5187 GB, free: 3.891 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.472, allocations: 341.9 kB / 0.5191 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005925/0.4726, allocations: 229.9 kB / 0.5193 GB, free: 3.328 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008644/0.4735, allocations: 0.5891 MB / 0.5199 GB, free: 2.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.475, allocations: 0.8841 MB / 0.5207 GB, free: 1.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.475, allocations: 4 kB / 0.5207 GB, free: 1.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002595/0.4776, allocations: 1.287 MB / 0.522 GB, free: 224 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.4776, allocations: 8 kB / 0.522 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.4778, allocations: 80 kB / 0.5221 GB, free: 136 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006236/0.4784, allocations: 285.1 kB / 0.5223 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005852/0.479, allocations: 163.7 kB / 0.5225 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.4801, allocations: 0.8849 MB / 0.5234 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.4815, allocations: 115.2 kB / 0.5235 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.4816, allocations: 64 kB / 0.5235 GB, free: 14.6 MB / 446.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.0008197/0.4824, allocations: 421.5 kB / 0.5239 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005484/0.483, allocations: 381.6 kB / 0.5243 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/0.4859, allocations: 1.256 MB / 0.5255 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.4859, allocations: 8 kB / 0.5255 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4859, allocations: 0 / 0.5255 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.4859, allocations: 11.92 kB / 0.5255 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/0.491, allocations: 2.181 MB / 0.5277 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001192/0.4912, allocations: 76.11 kB / 0.5277 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.4915, allocations: 63.89 kB / 0.5278 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005243/0.492, allocations: 264.1 kB / 0.5281 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-05/0.4921, allocations: 32.88 kB / 0.5281 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.4932, allocations: 0.853 MB / 0.5289 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.4932, allocations: 7.969 kB / 0.5289 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002652/0.4958, allocations: 1.146 MB / 0.5301 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/0.4972, allocations: 482.4 kB / 0.5305 GB, free: 7.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003061/0.4975, allocations: 12 kB / 0.5305 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.4981, allocations: 27.97 kB / 0.5306 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.4983, allocations: 64.81 kB / 0.5306 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.819e-05/0.4984, allocations: 40 kB / 0.5307 GB, free: 7.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002744/0.5011, allocations: 1.824 MB / 0.5324 GB, free: 5.301 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5011, allocations: 4 kB / 0.5324 GB, free: 5.297 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001636/0.5028, allocations: 0.5657 MB / 0.533 GB, free: 4.73 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.003566/0.5063, allocations: 2.363 MB / 0.5353 GB, free: 2.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.5082, allocations: 0.8191 MB / 0.5361 GB, free: 1.484 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.5082, allocations: 4 kB / 0.5361 GB, free: 1.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009045/0.5091, allocations: 472.4 kB / 0.5366 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002722/0.5118, allocations: 0.6133 MB / 0.5372 GB, free: 396 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/0.538, allocations: 16.02 MB / 0.5528 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.5394, allocations: 1.604 MB / 0.5544 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.5406, allocations: 386.9 kB / 0.5547 GB, free: 13.78 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.5418, allocations: 1.124 MB / 0.5558 GB, free: 12.66 MB / 478.1 MB Notification: Performance of SimCode: time 1.623e-06/0.5418, allocations: 4 kB / 0.5558 GB, free: 12.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3193/0.8611, allocations: 62.62 MB / 0.617 GB, free: 165 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.09/20.95, allocations: 3.078 kB / 0.617 GB, free: 165 MB / 0.5137 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.340025599114597]