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.001704/0.001704, allocations: 122.1 kB / 17.78 MB, free: 5.121 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.001894/0.001894, allocations: 189.2 kB / 20.73 MB, free: 2.184 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.456/1.456, allocations: 225.6 MB / 249.1 MB, free: 3.637 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.001473/0.001473, allocations: 51.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.09819, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01473/0.1129, allocations: 14.07 MB / 431.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2162/0.3292, allocations: 20.31 MB / 452.1 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.3307, allocations: 120.3 kB / 452.3 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.333, allocations: 1.13 MB / 453.4 MB, free: 6.816 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006532/0.3395, allocations: 2.289 MB / 455.7 MB, free: 6.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004784/0.3443, allocations: 1.435 MB / 457.1 MB, free: 6.004 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009656/0.3539, allocations: 6.381 MB / 463.5 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006614/0.3546, allocations: 251.3 kB / 463.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001963/0.3566, allocations: 1.068 MB / 464.8 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.3578, allocations: 1.051 MB / 465.9 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.358, allocations: 73.5 kB / 465.9 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004122/0.3621, allocations: 1.47 MB / 467.4 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002949/0.3624, allocations: 304.2 kB / 467.7 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.3636, allocations: 1.3 MB / 469 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004701/0.3683, allocations: 3.648 MB / 472.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3683, allocations: 0 / 472.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3683, allocations: 0 / 472.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.525e-05/0.3684, allocations: 2.219 kB / 472.6 MB, free: 2.062 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.005236/0.3736, allocations: 3.626 MB / 476.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3737, allocations: 13.62 kB / 476.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.3738, allocations: 93.66 kB / 476.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005058/0.3743, allocations: 392.5 kB / 476.8 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004134/0.3784, allocations: 2.535 MB / 479.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.3785, allocations: 30.66 kB / 479.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.3786, allocations: 50.81 kB / 479.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.38, allocations: 0.7092 MB / 480.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.38, allocations: 0 / 480.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.849e-05/0.38, allocations: 21.2 kB / 480.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.3801, allocations: 19.72 kB / 480.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.3815, allocations: 0.7932 MB / 480.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005302/0.3868, allocations: 2.894 MB / 483.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.388, allocations: 0.6277 MB / 484.4 MB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009382/0.389, allocations: 0.5714 MB / 485 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03523/0.4242, allocations: 30.1 MB / 0.503 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007752/0.425, allocations: 353.7 kB / 0.5034 GB, free: 9.898 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.996e-06/0.425, allocations: 3.938 kB / 0.5034 GB, free: 9.895 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003463/0.4284, allocations: 1.413 MB / 0.5048 GB, free: 8.453 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.4285, allocations: 55.41 kB / 0.5048 GB, free: 8.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00403/0.4325, allocations: 2.799 MB / 0.5075 GB, free: 5.566 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.171e-05/0.4326, allocations: 33.69 kB / 0.5076 GB, free: 5.527 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.434, allocations: 1.401 MB / 0.5089 GB, free: 4.125 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.4341, allocations: 171.8 kB / 0.5091 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003339/0.4345, allocations: 222.4 kB / 0.5093 GB, free: 3.738 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4346, allocations: 345.9 kB / 0.5096 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005751/0.4352, allocations: 237.9 kB / 0.5099 GB, free: 3.164 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009046/0.4361, allocations: 0.5891 MB / 0.5105 GB, free: 2.402 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.4376, allocations: 0.8863 MB / 0.5113 GB, free: 1.348 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4376, allocations: 0 / 0.5113 GB, free: 1.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00245/0.44, allocations: 1.284 MB / 0.5126 GB, free: 60 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.4401, allocations: 8 kB / 0.5126 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/0.4402, allocations: 83.98 kB / 0.5127 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00058/0.4408, allocations: 280.7 kB / 0.5129 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005692/0.4414, allocations: 168.5 kB / 0.5131 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.4424, allocations: 0.8827 MB / 0.5139 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.4438, allocations: 115.3 kB / 0.5141 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.4439, allocations: 64 kB / 0.5141 GB, free: 14.45 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.0007722/0.4447, allocations: 422.1 kB / 0.5145 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/0.4451, allocations: 381.6 kB / 0.5149 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.448, allocations: 1.266 MB / 0.5161 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.448, allocations: 4 kB / 0.5161 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.448, allocations: 4.5 kB / 0.5161 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.448, allocations: 7.922 kB / 0.5161 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004228/0.4522, allocations: 2.183 MB / 0.5183 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001057/0.4523, allocations: 71.98 kB / 0.5183 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.4526, allocations: 64.77 kB / 0.5184 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004799/0.4531, allocations: 265 kB / 0.5187 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.4532, allocations: 31.98 kB / 0.5187 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.4542, allocations: 0.8608 MB / 0.5195 GB, free: 8.797 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4542, allocations: 4.031 kB / 0.5195 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.4562, allocations: 1.138 MB / 0.5206 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.4574, allocations: 490.4 kB / 0.5211 GB, free: 7.121 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003161/0.4577, allocations: 8 kB / 0.5211 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006412/0.4583, allocations: 31.91 kB / 0.5211 GB, free: 7.082 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.4585, allocations: 63.94 kB / 0.5212 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.793e-05/0.4586, allocations: 41.44 kB / 0.5212 GB, free: 6.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002589/0.4612, allocations: 1.824 MB / 0.523 GB, free: 5.152 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4612, allocations: 0 / 0.523 GB, free: 5.152 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001563/0.4627, allocations: 0.5696 MB / 0.5236 GB, free: 4.582 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.003591/0.4663, allocations: 2.367 MB / 0.5259 GB, free: 2.324 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.4682, allocations: 0.8152 MB / 0.5267 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4682, allocations: 0 / 0.5267 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009225/0.4691, allocations: 468.1 kB / 0.5271 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/0.472, allocations: 0.5989 MB / 0.5277 GB, free: 428 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02484/0.4968, allocations: 16.04 MB / 0.5434 GB, free: 15.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001328/0.4981, allocations: 1.6 MB / 0.5449 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001221/0.4994, allocations: 390.9 kB / 0.5453 GB, free: 13.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.5006, allocations: 1.124 MB / 0.5464 GB, free: 12.69 MB / 462.1 MB Notification: Performance of SimCode: time 2.104e-06/0.5006, allocations: 0 / 0.5464 GB, free: 12.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/0.6203, allocations: 62.51 MB / 0.6075 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.01/19.63, allocations: 10.67 kB / 0.6075 GB, free: 14.54 MB / 0.5137 GB " [Timeout remaining time 640] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 22.934904013294727]