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.001656/0.001656, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002058/0.002058, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.406/1.406, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.001865/0.001865, allocations: 67.88 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2356, allocations: 53.42 MB / 431.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01438/0.25, allocations: 14.07 MB / 445.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02479/0.2748, allocations: 20.38 MB / 465.6 MB, free: 4.125 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002175/0.277, allocations: 189.8 kB / 465.8 MB, free: 3.938 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00298/0.28, allocations: 1.126 MB / 466.9 MB, free: 2.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006957/0.2869, allocations: 2.324 MB / 469.3 MB, free: 476 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.2915, allocations: 1.449 MB / 470.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.3018, allocations: 6.478 MB / 477.2 MB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005966/0.3024, allocations: 249 kB / 477.4 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.304, allocations: 1.108 MB / 478.5 MB, free: 7.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001401/0.3054, allocations: 1.052 MB / 479.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.3056, allocations: 72 kB / 479.7 MB, free: 5.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004081/0.3097, allocations: 1.475 MB / 481.1 MB, free: 4.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000362/0.31, allocations: 309.7 kB / 481.4 MB, free: 4.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.3114, allocations: 1.304 MB / 482.7 MB, free: 2.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004906/0.3163, allocations: 3.651 MB / 486.4 MB, free: 15.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3163, allocations: 0 / 486.4 MB, free: 15.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3163, allocations: 0 / 486.4 MB, free: 15.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-05/0.3164, allocations: 4 kB / 486.4 MB, free: 15.23 MB / 398.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.005369/0.3218, allocations: 3.558 MB / 490 MB, free: 11.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.3218, allocations: 12.02 kB / 490 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.3219, allocations: 90.52 kB / 490.1 MB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003996/0.3223, allocations: 389.6 kB / 490.4 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003641/0.326, allocations: 2.355 MB / 492.8 MB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.326, allocations: 37 kB / 492.8 MB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.3261, allocations: 51.95 kB / 492.9 MB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3274, allocations: 0.707 MB / 493.6 MB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3274, allocations: 0 / 493.6 MB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.294e-05/0.3275, allocations: 16 kB / 493.6 MB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.3275, allocations: 23.98 kB / 493.6 MB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.329, allocations: 0.7929 MB / 494.4 MB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004807/0.3338, allocations: 2.82 MB / 497.2 MB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.335, allocations: 0.5708 MB / 497.8 MB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009641/0.3359, allocations: 0.5809 MB / 498.4 MB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02589/0.3618, allocations: 13.76 MB / 0.5002 GB, free: 4.855 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007591/0.3626, allocations: 361.6 kB / 0.5005 GB, free: 4.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.544e-06/0.3626, allocations: 4 kB / 0.5005 GB, free: 4.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003121/0.3657, allocations: 1.318 MB / 0.5018 GB, free: 3.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.3658, allocations: 63.39 kB / 0.5018 GB, free: 3.086 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003454/0.3692, allocations: 2.796 MB / 0.5046 GB, free: 276 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.3693, allocations: 37.7 kB / 0.5046 GB, free: 232 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/0.3706, allocations: 1.396 MB / 0.506 GB, free: 14.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.3707, allocations: 170.6 kB / 0.5061 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002997/0.371, allocations: 230.4 kB / 0.5064 GB, free: 14.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3712, allocations: 334 kB / 0.5067 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005544/0.3717, allocations: 237.8 kB / 0.5069 GB, free: 13.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008169/0.3726, allocations: 0.5927 MB / 0.5075 GB, free: 13.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.374, allocations: 0.8841 MB / 0.5083 GB, free: 12.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.374, allocations: 4 kB / 0.5084 GB, free: 12.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002176/0.3762, allocations: 1.285 MB / 0.5096 GB, free: 10.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.3762, allocations: 8 kB / 0.5096 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/0.3763, allocations: 80 kB / 0.5097 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.3769, allocations: 272.9 kB / 0.51 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.3774, allocations: 175.6 kB / 0.5101 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000996/0.3784, allocations: 0.8832 MB / 0.511 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009014/0.3793, allocations: 123.3 kB / 0.5111 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3794, allocations: 64 kB / 0.5112 GB, free: 9.129 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.0006811/0.3801, allocations: 418.1 kB / 0.5116 GB, free: 8.711 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003704/0.3805, allocations: 377.7 kB / 0.5119 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.3832, allocations: 1.263 MB / 0.5132 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3832, allocations: 8 kB / 0.5132 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3832, allocations: 0 / 0.5132 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.3832, allocations: 7.922 kB / 0.5132 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003737/0.387, allocations: 2.153 MB / 0.5153 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001054/0.3871, allocations: 72 kB / 0.5153 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003082/0.3874, allocations: 68 kB / 0.5154 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004737/0.3879, allocations: 256.8 kB / 0.5156 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.645e-05/0.3879, allocations: 39.94 kB / 0.5157 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009337/0.3888, allocations: 0.8559 MB / 0.5165 GB, free: 3.512 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3889, allocations: 4.031 kB / 0.5165 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.3907, allocations: 1.138 MB / 0.5176 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008398/0.3916, allocations: 419.2 kB / 0.518 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002768/0.3918, allocations: 11.94 kB / 0.518 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.3925, allocations: 31.97 kB / 0.5181 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.3926, allocations: 63.92 kB / 0.5181 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.362e-05/0.3927, allocations: 40 kB / 0.5182 GB, free: 1.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002419/0.3951, allocations: 1.824 MB / 0.52 GB, free: 15.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3951, allocations: 0 / 0.52 GB, free: 15.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001296/0.3964, allocations: 0.5658 MB / 0.5205 GB, free: 15.37 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.003305/0.3997, allocations: 2.37 MB / 0.5228 GB, free: 12.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.4015, allocations: 0.8183 MB / 0.5236 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4015, allocations: 0 / 0.5236 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009013/0.4024, allocations: 476.2 kB / 0.5241 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.4046, allocations: 0.599 MB / 0.5247 GB, free: 11.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2236/0.6282, allocations: 16.01 MB / 0.5403 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.6293, allocations: 1.601 MB / 0.5419 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.6304, allocations: 395.3 kB / 0.5422 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008216/0.6312, allocations: 1.126 MB / 0.5433 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/0.6312, allocations: 0 / 0.5433 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09645/0.7277, allocations: 63.14 MB / 0.605 GB, free: 42.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.2/20.92, allocations: 3.719 kB / 0.605 GB, free: 42.77 MB / 446.1 MB " [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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.112781626870856]