Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 124.4 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 47.94 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.09558, allocations: 53.34 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.201/0.2966, allocations: 14.06 MB / 440.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02618/0.3228, allocations: 20.36 MB / 460.7 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003312/0.3261, allocations: 191.2 kB / 460.9 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003769/0.3299, allocations: 1.132 MB / 462 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009298/0.3392, allocations: 2.299 MB / 464.3 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005439/0.3446, allocations: 1.426 MB / 465.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.3559, allocations: 6.439 MB / 472.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000693/0.3566, allocations: 256.9 kB / 472.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002102/0.3587, allocations: 1.112 MB / 473.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001655/0.3604, allocations: 1.053 MB / 474.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002403/0.3606, allocations: 69.28 kB / 474.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005324/0.3659, allocations: 1.476 MB / 476.2 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005977/0.3665, allocations: 306.8 kB / 476.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002355/0.3689, allocations: 1.308 MB / 477.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007655/0.3766, allocations: 3.649 MB / 481.4 MB, free: 9.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3766, allocations: 1.438 kB / 481.4 MB, free: 9.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3766, allocations: 0 / 481.4 MB, free: 9.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001105/0.3767, allocations: 0 / 481.4 MB, free: 9.43 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.006818/0.3835, allocations: 3.634 MB / 485.1 MB, free: 5.957 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3835, allocations: 8.031 kB / 485.1 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.3837, allocations: 98.5 kB / 485.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00055/0.3842, allocations: 389.6 kB / 485.5 MB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004266/0.3885, allocations: 2.531 MB / 488.1 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.3885, allocations: 40.98 kB / 488.1 MB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.3887, allocations: 55.89 kB / 488.2 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.3901, allocations: 0.6953 MB / 488.9 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3902, allocations: 0 / 488.9 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.279e-05/0.3902, allocations: 20 kB / 488.9 MB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.3903, allocations: 19.98 kB / 488.9 MB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.3919, allocations: 0.7851 MB / 489.7 MB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005655/0.3976, allocations: 2.88 MB / 492.6 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.3989, allocations: 0.6385 MB / 493.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.4, allocations: 0.5806 MB / 493.8 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03241/0.4324, allocations: 30.72 MB / 0.5122 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008641/0.4333, allocations: 365.5 kB / 0.5126 GB, free: 9.703 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.4333, allocations: 3.938 kB / 0.5126 GB, free: 9.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003528/0.4368, allocations: 1.397 MB / 0.5139 GB, free: 8.273 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.4369, allocations: 59.39 kB / 0.514 GB, free: 8.203 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00375/0.4406, allocations: 2.807 MB / 0.5167 GB, free: 5.375 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.13e-05/0.4407, allocations: 29.7 kB / 0.5168 GB, free: 5.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.442, allocations: 1.4 MB / 0.5181 GB, free: 3.934 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.4422, allocations: 170.6 kB / 0.5183 GB, free: 3.766 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003338/0.4425, allocations: 226.4 kB / 0.5185 GB, free: 3.539 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4427, allocations: 333.9 kB / 0.5188 GB, free: 3.207 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/0.4433, allocations: 241.9 kB / 0.5191 GB, free: 2.973 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/0.4442, allocations: 0.5891 MB / 0.5196 GB, free: 2.215 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.4458, allocations: 0.8724 MB / 0.5205 GB, free: 1.172 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.4458, allocations: 4 kB / 0.5205 GB, free: 1.168 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002598/0.4484, allocations: 1.289 MB / 0.5217 GB, free: 15.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.4485, allocations: 8 kB / 0.5218 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.4486, allocations: 80 kB / 0.5218 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006114/0.4492, allocations: 283.6 kB / 0.5221 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006081/0.4498, allocations: 167.7 kB / 0.5223 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.4509, allocations: 0.8925 MB / 0.5231 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.4522, allocations: 119.2 kB / 0.5232 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.4523, allocations: 64.62 kB / 0.5233 GB, free: 14.24 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.0007629/0.453, allocations: 421.5 kB / 0.5237 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004696/0.4535, allocations: 385.5 kB / 0.5241 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003009/0.4565, allocations: 1.244 MB / 0.5253 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.4565, allocations: 4 kB / 0.5253 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.4565, allocations: 4 kB / 0.5253 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.4566, allocations: 11.91 kB / 0.5253 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004379/0.4609, allocations: 2.186 MB / 0.5274 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.966e-05/0.461, allocations: 68 kB / 0.5275 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.4614, allocations: 63.94 kB / 0.5276 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005162/0.4619, allocations: 260.9 kB / 0.5278 GB, free: 9.512 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.406e-05/0.462, allocations: 35.98 kB / 0.5279 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.463, allocations: 0.8641 MB / 0.5287 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.463, allocations: 4.031 kB / 0.5287 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.4653, allocations: 1.133 MB / 0.5298 GB, free: 7.418 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.4666, allocations: 486.4 kB / 0.5303 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004158/0.467, allocations: 15.98 kB / 0.5303 GB, free: 6.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007083/0.4677, allocations: 31.97 kB / 0.5303 GB, free: 6.875 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.4679, allocations: 63.88 kB / 0.5304 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.468, allocations: 40 kB / 0.5304 GB, free: 6.773 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.4707, allocations: 1.824 MB / 0.5322 GB, free: 4.945 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4707, allocations: 0 / 0.5322 GB, free: 4.945 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001595/0.4723, allocations: 0.5696 MB / 0.5328 GB, free: 4.375 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.003776/0.4761, allocations: 2.363 MB / 0.5351 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.4782, allocations: 0.8184 MB / 0.5359 GB, free: 1.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4782, allocations: 4 kB / 0.5359 GB, free: 1.125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.4792, allocations: 477.1 kB / 0.5363 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003081/0.4823, allocations: 0.5969 MB / 0.5369 GB, free: 44 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02732/0.5096, allocations: 16.03 MB / 0.5526 GB, free: 15.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/0.5108, allocations: 1.596 MB / 0.5541 GB, free: 13.83 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001172/0.512, allocations: 394.9 kB / 0.5545 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.5132, allocations: 1.12 MB / 0.5556 GB, free: 12.32 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5132, allocations: 4 kB / 0.5556 GB, free: 12.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3122/0.8255, allocations: 62.54 MB / 0.6167 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.94/19.76, allocations: 8.062 kB / 0.6167 GB, free: 164.2 MB / 0.5137 GB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.933421356836334]