Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.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.0009431/0.0009431, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004582/0.004582, allocations: 160.9 kB / 24.7 MB, free: 9.41 MB / 18.57 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 0.8645/0.8645, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.813e-05/2.987e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008326/0.008356, allocations: 12 MB / 337.8 MB, free: 3.387 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.02559, allocations: 17.58 MB / 355.4 MB, free: 1.734 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001876/0.02747, allocations: 189.8 kB / 355.6 MB, free: 1.547 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.0294, allocations: 1.036 MB / 356.6 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005565/0.03497, allocations: 2.401 MB / 359 MB, free: 14.08 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00304/0.03801, allocations: 1.441 MB / 360.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006152/0.04416, allocations: 6.706 MB / 367.2 MB, free: 5.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004426/0.0446, allocations: 253 kB / 367.4 MB, free: 5.633 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.04594, allocations: 1.539 MB / 369 MB, free: 4.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006443/0.04659, allocations: 0.7745 MB / 369.7 MB, free: 3.312 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.422e-05/0.04668, allocations: 76 kB / 369.8 MB, free: 3.238 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.04877, allocations: 1.214 MB / 371 MB, free: 2.023 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.04893, allocations: 321.7 kB / 371.3 MB, free: 1.707 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000508/0.04944, allocations: 0.7203 MB / 372.1 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00279/0.05223, allocations: 3.69 MB / 375.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.05224, allocations: 4 kB / 375.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.05224, allocations: 0 / 375.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.051e-05/0.05226, allocations: 0 / 375.7 MB, free: 13.27 MB / 346.7 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.002836/0.0551, allocations: 3.574 MB / 379.3 MB, free: 9.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.05514, allocations: 12.03 kB / 379.3 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004068/0.05555, allocations: 401.5 kB / 379.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.05769, allocations: 2.375 MB / 382.1 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.05771, allocations: 33 kB / 382.1 MB, free: 6.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.842e-05/0.0578, allocations: 55.92 kB / 382.2 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009259/0.05873, allocations: 0.7577 MB / 382.9 MB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.05874, allocations: 4 kB / 382.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.089e-05/0.05879, allocations: 20 kB / 383 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.05881, allocations: 19.98 kB / 383 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.05987, allocations: 0.8553 MB / 383.8 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002926/0.06279, allocations: 2.663 MB / 386.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.06394, allocations: 0.7283 MB / 387.2 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008732/0.06482, allocations: 0.8831 MB / 388.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/0.07963, allocations: 13.65 MB / 401.8 MB, free: 2.652 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007469/0.08038, allocations: 0.5918 MB / 402.4 MB, free: 2.051 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 3.497e-06/0.08038, allocations: 7.984 kB / 402.4 MB, free: 2.043 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006757/0.08714, allocations: 4.513 MB / 406.9 MB, free: 13.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.08719, allocations: 68.39 kB / 406.9 MB, free: 13.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002328/0.08952, allocations: 2.704 MB / 409.7 MB, free: 10.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.53e-05/0.08958, allocations: 41.7 kB / 409.7 MB, free: 10.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007237/0.0903, allocations: 1.315 MB / 411 MB, free: 9.293 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.09048, allocations: 345 kB / 411.3 MB, free: 8.953 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.0907, allocations: 234.4 kB / 411.6 MB, free: 8.719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.719e-05/0.09078, allocations: 341.9 kB / 411.9 MB, free: 8.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000678/0.09146, allocations: 478 kB / 412.4 MB, free: 7.914 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007576/0.09222, allocations: 0.647 MB / 413 MB, free: 7.199 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.09361, allocations: 1.133 MB / 414.2 MB, free: 6.004 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.09362, allocations: 4 kB / 414.2 MB, free: 6 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002434/0.09605, allocations: 1.831 MB / 416 MB, free: 4.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.09608, allocations: 8 kB / 416 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/0.09618, allocations: 123.9 kB / 416.1 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004376/0.09662, allocations: 264.7 kB / 416.4 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.09706, allocations: 195.7 kB / 416.6 MB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006372/0.1034, allocations: 12.97 MB / 429.5 MB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.1046, allocations: 92.08 kB / 429.6 MB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.953e-05/0.1047, allocations: 56 kB / 429.7 MB, free: 5.387 MB / 394.7 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.0008313/0.1056, allocations: 421.7 kB / 430.1 MB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.1059, allocations: 393.4 kB / 430.5 MB, free: 4.578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002729/0.1086, allocations: 2.051 MB / 432.5 MB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.1087, allocations: 8 kB / 432.5 MB, free: 2.477 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1087, allocations: 8 kB / 432.5 MB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1087, allocations: 3.984 kB / 432.6 MB, free: 2.465 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.1098, allocations: 1.305 MB / 433.9 MB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.998e-05/0.1099, allocations: 112 kB / 434 MB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/0.1102, allocations: 131.8 kB / 434.1 MB, free: 0.8906 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000365/0.1106, allocations: 272.3 kB / 434.4 MB, free: 0.5938 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.398e-05/0.1107, allocations: 43.92 kB / 434.4 MB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005474/0.1161, allocations: 12.97 MB / 447.4 MB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1161, allocations: 4.062 kB / 447.4 MB, free: 2.555 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003015/0.1192, allocations: 2.407 MB / 449.8 MB, free: 96 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1584/0.2776, allocations: 431.1 kB / 450.2 MB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/0.2778, allocations: 22.47 kB / 450.2 MB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/0.2784, allocations: 81.86 kB / 450.3 MB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/0.2788, allocations: 144.8 kB / 450.4 MB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.2789, allocations: 50.56 kB / 450.5 MB, free: 116.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002139/0.281, allocations: 1.77 MB / 452.3 MB, free: 116.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.281, allocations: 1.25 kB / 452.3 MB, free: 116.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001133/0.2821, allocations: 0.6507 MB / 452.9 MB, free: 116.1 MB / 410.7 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.0007772/0.2829, allocations: 0.8578 MB / 453.8 MB, free: 116 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.285, allocations: 2.445 MB / 456.2 MB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.285, allocations: 7.578 kB / 456.2 MB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.2862, allocations: 1.903 MB / 458.1 MB, free: 113.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.2875, allocations: 0.619 MB / 458.7 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003593/0.2911, allocations: 4.603 MB / 463.3 MB, free: 109.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.2917, allocations: 1.108 MB / 464.5 MB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.2919, allocations: 172.5 kB / 464.6 MB, free: 109 MB / 410.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2919, allocations: 0 / 464.6 MB, free: 109 MB / 410.7 MB Notification: Performance of Templates: time 0.2257/0.5176, allocations: 155.8 MB / 0.6059 GB, free: 158 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.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: 10.760238827206194]