Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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.001336/0.001336, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002212/0.002212, allocations: 204.7 kB / 24.51 MB, free: 3.945 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.445/1.445, allocations: 230.5 MB / 258.2 MB, free: 7.793 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.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.91 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3074, allocations: 53.41 MB / 431.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01359/0.321, allocations: 11.97 MB / 443.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02399/0.345, allocations: 17.57 MB / 461.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003164/0.3482, allocations: 193.8 kB / 461.6 MB, free: 8.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003567/0.3517, allocations: 1.03 MB / 462.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.3623, allocations: 2.327 MB / 465 MB, free: 5.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006551/0.3689, allocations: 1.422 MB / 466.4 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.3809, allocations: 6.536 MB / 472.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007905/0.3817, allocations: 249 kB / 473.2 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.3838, allocations: 1.155 MB / 474.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.3854, allocations: 1.079 MB / 475.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002299/0.3857, allocations: 76 kB / 475.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004352/0.39, allocations: 1.241 MB / 476.7 MB, free: 9.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004159/0.3904, allocations: 317.7 kB / 477 MB, free: 9.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.3918, allocations: 0.978 MB / 478 MB, free: 8.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005978/0.3978, allocations: 3.749 MB / 481.8 MB, free: 4.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3978, allocations: 4 kB / 481.8 MB, free: 4.344 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3978, allocations: 0 / 481.8 MB, free: 4.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.888e-05/0.3978, allocations: 0 / 481.8 MB, free: 4.344 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.006282/0.4041, allocations: 3.61 MB / 485.4 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.4042, allocations: 8.031 kB / 485.4 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.488e-05/0.4042, allocations: 17 kB / 485.4 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.4044, allocations: 102.4 kB / 485.5 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006769/0.405, allocations: 397.5 kB / 485.9 MB, free: 160 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004192/0.4092, allocations: 2.375 MB / 488.3 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.4093, allocations: 37 kB / 488.3 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.4094, allocations: 51.98 kB / 488.4 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.411, allocations: 0.7576 MB / 489.1 MB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.411, allocations: 4 kB / 489.1 MB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.342e-05/0.4111, allocations: 24 kB / 489.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/0.4111, allocations: 19.98 kB / 489.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001869/0.413, allocations: 0.8592 MB / 490 MB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005748/0.4188, allocations: 2.767 MB / 492.8 MB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.4205, allocations: 0.7247 MB / 493.5 MB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.4221, allocations: 0.8598 MB / 494.4 MB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02623/0.4483, allocations: 13.68 MB / 0.4961 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.4496, allocations: 0.5996 MB / 0.4967 GB, free: 8.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 4.668e-06/0.4496, allocations: 4 kB / 0.4967 GB, free: 8.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.0127/0.4623, allocations: 4.512 MB / 0.5011 GB, free: 4.246 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.4624, allocations: 68.39 kB / 0.5012 GB, free: 4.168 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004476/0.4669, allocations: 2.704 MB / 0.5038 GB, free: 1.449 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002724/0.4671, allocations: 41.7 kB / 0.5039 GB, free: 1.402 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.4685, allocations: 1.308 MB / 0.5052 GB, free: 92 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005568/0.469, allocations: 349 kB / 0.5055 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000498/0.4695, allocations: 238.4 kB / 0.5057 GB, free: 15.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.4697, allocations: 345.9 kB / 0.5061 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.4711, allocations: 478 kB / 0.5065 GB, free: 14.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.4725, allocations: 0.6504 MB / 0.5071 GB, free: 13.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002619/0.4751, allocations: 1.126 MB / 0.5082 GB, free: 12.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.4751, allocations: 4 kB / 0.5082 GB, free: 12.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004554/0.4796, allocations: 1.839 MB / 0.51 GB, free: 10.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.4797, allocations: 8 kB / 0.51 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001749/0.4798, allocations: 116 kB / 0.5102 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007679/0.4806, allocations: 264.6 kB / 0.5104 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008686/0.4815, allocations: 203.6 kB / 0.5106 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.4922, allocations: 13.19 MB / 0.5235 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.4938, allocations: 92.08 kB / 0.5236 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/0.494, allocations: 56 kB / 0.5236 GB, free: 11.83 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000868/0.4949, allocations: 432.3 kB / 0.524 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004834/0.4953, allocations: 385.6 kB / 0.5244 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004903/0.5003, allocations: 2.056 MB / 0.5264 GB, free: 8.926 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.5003, allocations: 8 kB / 0.5264 GB, free: 8.918 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.5003, allocations: 11.94 kB / 0.5264 GB, free: 8.906 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.5003, allocations: 3.984 kB / 0.5264 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.5025, allocations: 1.386 MB / 0.5278 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001542/0.5027, allocations: 116 kB / 0.5279 GB, free: 7.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007344/0.5034, allocations: 135.8 kB / 0.528 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007027/0.5041, allocations: 264.3 kB / 0.5283 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.5042, allocations: 43.98 kB / 0.5283 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2161/0.7203, allocations: 13.18 MB / 0.5412 GB, free: 97.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.7203, allocations: 0 / 0.5412 GB, free: 97.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00522/0.7255, allocations: 2.408 MB / 0.5435 GB, free: 97.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009275/0.7264, allocations: 438.9 kB / 0.544 GB, free: 97.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003176/0.7268, allocations: 19.02 kB / 0.544 GB, free: 97.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009331/0.7277, allocations: 82.22 kB / 0.5441 GB, free: 97.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004031/0.7281, allocations: 147.6 kB / 0.5442 GB, free: 97.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.7282, allocations: 47.77 kB / 0.5442 GB, free: 97.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002381/0.7306, allocations: 1.774 MB / 0.546 GB, free: 96.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7306, allocations: 0 / 0.546 GB, free: 96.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001445/0.732, allocations: 0.6523 MB / 0.5466 GB, free: 96.63 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005687/0.7377, allocations: 3.691 MB / 0.5502 GB, free: 95.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0033/0.741, allocations: 2.451 MB / 0.5526 GB, free: 93.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.741, allocations: 0 / 0.5526 GB, free: 93.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001991/0.743, allocations: 1.904 MB / 0.5545 GB, free: 91.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.7455, allocations: 0.613 MB / 0.5551 GB, free: 90.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02236/0.7678, allocations: 17.9 MB / 0.5726 GB, free: 73.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007596/0.7686, allocations: 1.108 MB / 0.5736 GB, free: 72.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001083/0.7697, allocations: 395.2 kB / 0.574 GB, free: 71.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009062/0.7706, allocations: 1.194 MB / 0.5752 GB, free: 70.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.323e-06/0.7706, allocations: 0 / 0.5752 GB, free: 70.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/0.8998, allocations: 70.52 MB / 0.644 GB, free: 472 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.26/20.16, allocations: 12 kB / 0.6441 GB, free: 460 kB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 24.51148679794278]