Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001304, allocations: 112 kB / 17.28 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 185.4 kB / 18.2 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001132, allocations: 51.92 kB / 280.2 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09434/0.09549, allocations: 46.62 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01317/0.1087, allocations: 13.4 MB / 340.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02103/0.1297, allocations: 19.14 MB / 359.3 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.1324, allocations: 63.5 kB / 359.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003439/0.1359, allocations: 0.9583 MB / 360.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007488/0.1434, allocations: 1.938 MB / 362.3 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005312/0.1488, allocations: 1.199 MB / 363.5 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009805/0.1586, allocations: 6.355 MB / 369.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008793/0.1595, allocations: 432.5 kB / 370.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.1611, allocations: 0.9602 MB / 371.2 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.1622, allocations: 1.06 MB / 372.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.1624, allocations: 80 kB / 372.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004067/0.1665, allocations: 1.159 MB / 373.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003608/0.1669, allocations: 329.7 kB / 373.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.1682, allocations: 1.324 MB / 375.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004707/0.173, allocations: 3.677 MB / 378.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.173, allocations: 0 / 378.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.173, allocations: 3.938 kB / 378.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.431e-05/0.173, allocations: 0 / 378.8 MB, free: 0.5 MB / 318.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.1588/0.3318, allocations: 3.594 MB / 382.4 MB, free: 53.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.3319, allocations: 9 kB / 382.4 MB, free: 53.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008021/0.3327, allocations: 380.2 kB / 382.8 MB, free: 53.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004397/0.3371, allocations: 2.555 MB / 385.4 MB, free: 52.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.3372, allocations: 37.16 kB / 385.4 MB, free: 52.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.3373, allocations: 52.94 kB / 385.4 MB, free: 52.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3389, allocations: 0.7564 MB / 386.2 MB, free: 52.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3389, allocations: 1.469 kB / 386.2 MB, free: 52.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.249e-05/0.339, allocations: 22.7 kB / 386.2 MB, free: 52.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.662e-05/0.3391, allocations: 25.12 kB / 386.3 MB, free: 52.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001809/0.3409, allocations: 0.8533 MB / 387.1 MB, free: 52.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005282/0.3462, allocations: 2.978 MB / 390.1 MB, free: 50.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.3478, allocations: 0.8013 MB / 390.9 MB, free: 50.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.3492, allocations: 0.9518 MB / 391.8 MB, free: 49.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03318/0.3824, allocations: 30.14 MB / 422 MB, free: 19.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/0.3839, allocations: 0.589 MB / 422.6 MB, free: 19.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 4.308e-06/0.384, allocations: 0 / 422.6 MB, free: 19.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01636/0.4003, allocations: 5.238 MB / 427.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.4004, allocations: 72.38 kB / 427.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00382/0.4042, allocations: 2.705 MB / 430.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.4044, allocations: 45.69 kB / 430.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.4055, allocations: 1.299 MB / 431.9 MB, free: 9.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002762/0.4058, allocations: 335.2 kB / 432.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000445/0.4062, allocations: 234.3 kB / 432.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.4063, allocations: 349.8 kB / 432.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.4079, allocations: 478 kB / 433.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.4095, allocations: 0.647 MB / 433.9 MB, free: 7.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003196/0.4127, allocations: 1.133 MB / 435.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4127, allocations: 0 / 435.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.005008/0.4177, allocations: 1.971 MB / 437 MB, free: 4.199 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.4178, allocations: 4 kB / 437 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001244/0.4179, allocations: 124 kB / 437.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/0.4185, allocations: 268.7 kB / 437.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007816/0.4193, allocations: 203.6 kB / 437.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008329/0.4277, allocations: 14.25 MB / 451.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.4293, allocations: 87.89 kB / 452 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.4295, allocations: 64.06 kB / 452 MB, free: 3.816 MB / 334.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.0008275/0.4303, allocations: 430.2 kB / 452.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004726/0.4308, allocations: 374.2 kB / 452.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004844/0.4357, allocations: 2.21 MB / 455 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.4357, allocations: 11.94 kB / 455 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.4357, allocations: 12 kB / 455 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.4357, allocations: 3.984 kB / 455.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.4381, allocations: 1.543 MB / 456.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001501/0.4383, allocations: 116 kB / 456.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008585/0.4391, allocations: 139.8 kB / 456.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008393/0.44, allocations: 268.3 kB / 457.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.4402, allocations: 47.92 kB / 457.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.4504, allocations: 14.25 MB / 471.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4504, allocations: 0 / 471.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005419/0.4558, allocations: 2.551 MB / 474 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.457, allocations: 496.4 kB / 474.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004098/0.4574, allocations: 23.98 kB / 474.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009739/0.4584, allocations: 79.89 kB / 474.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/0.4588, allocations: 136.8 kB / 474.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.4589, allocations: 51.98 kB / 474.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002183/0.4611, allocations: 1.786 MB / 476.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4611, allocations: 0 / 476.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001587/0.4627, allocations: 0.6522 MB / 477.2 MB, free: 9 MB / 366.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.001206/0.4639, allocations: 0.8209 MB / 478 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005237/0.4692, allocations: 2.553 MB / 480.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.4692, allocations: 4.062 kB / 480.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002816/0.472, allocations: 1.948 MB / 482.5 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.4741, allocations: 0.5168 MB / 483 MB, free: 2.832 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006974/0.4811, allocations: 5.531 MB / 488.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4821, allocations: 1.662 MB / 490.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001436/0.4836, allocations: 399.3 kB / 490.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003031/0.4839, allocations: 163.4 kB / 490.7 MB, free: 11.03 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4839, allocations: 0 / 490.7 MB, free: 11.03 MB / 382.1 MB Notification: Performance of Templates: time 0.06093/0.5448, allocations: 36.78 MB / 0.5152 GB, free: 6.199 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches