Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001585, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.982/1.982, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 86.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.498e-05/3.511e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4216/0.532, allocations: 102.3 MB / 471.4 MB, free: 7.125 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.5324, allocations: 66.97 kB / 471.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.671/1.203, allocations: 124.1 MB / 0.5816 GB, free: 90.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.204, allocations: 0 / 0.5816 GB, free: 90.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.819e-05/1.204, allocations: 42.81 kB / 0.5816 GB, free: 90.9 MB / 410.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.006613/1.21, allocations: 2.639 MB / 0.5842 GB, free: 89.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/1.21, allocations: 10.91 kB / 0.5842 GB, free: 89.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007692/1.211, allocations: 380.5 kB / 0.5846 GB, free: 89.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00594/1.217, allocations: 2.262 MB / 0.5868 GB, free: 88.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/1.217, allocations: 36.88 kB / 0.5868 GB, free: 88.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/1.217, allocations: 53.95 kB / 0.5869 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/1.219, allocations: 0.7905 MB / 0.5877 GB, free: 87.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/1.219, allocations: 0 / 0.5877 GB, free: 87.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/1.219, allocations: 19.94 kB / 0.5877 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.106e-05/1.219, allocations: 21.66 kB / 0.5877 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/1.221, allocations: 0.7074 MB / 0.5884 GB, free: 87.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008154/1.229, allocations: 3.029 MB / 0.5913 GB, free: 85.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/1.231, allocations: 0.6618 MB / 0.592 GB, free: 85.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/1.232, allocations: 0.8793 MB / 0.5928 GB, free: 85.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04555/1.278, allocations: 35.98 MB / 0.628 GB, free: 47.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/1.279, allocations: 0.5175 MB / 0.6285 GB, free: 46.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.819e-06/1.279, allocations: 0 / 0.6285 GB, free: 46.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.009782/1.289, allocations: 3.476 MB / 0.6319 GB, free: 43.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.289, allocations: 269.8 kB / 0.6321 GB, free: 43.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004183/1.293, allocations: 2.234 MB / 0.6343 GB, free: 40.76 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002549/1.294, allocations: 41.7 kB / 0.6344 GB, free: 40.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/1.295, allocations: 1.061 MB / 0.6354 GB, free: 39.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/1.295, allocations: 340.4 kB / 0.6357 GB, free: 39.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.851e-05/1.295, allocations: 20 kB / 0.6357 GB, free: 39.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.194e-05/1.295, allocations: 350.8 kB / 0.6361 GB, free: 38.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008809/1.296, allocations: 326.3 kB / 0.6364 GB, free: 38.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009967/1.297, allocations: 0.5444 MB / 0.6369 GB, free: 38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009284/1.298, allocations: 395.8 kB / 0.6373 GB, free: 37.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/1.298, allocations: 11.94 kB / 0.6373 GB, free: 37.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003308/1.302, allocations: 1.369 MB / 0.6386 GB, free: 36.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/1.302, allocations: 8 kB / 0.6386 GB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002355/1.302, allocations: 131.9 kB / 0.6388 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/1.303, allocations: 264.4 kB / 0.639 GB, free: 35.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/1.305, allocations: 227.7 kB / 0.6392 GB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009127/1.314, allocations: 13.25 MB / 0.6522 GB, free: 20.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002942/1.317, allocations: 124 kB / 0.6523 GB, free: 20.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003822/1.317, allocations: 60 kB / 0.6524 GB, free: 20.75 MB / 410.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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003757/1.318, allocations: 164.7 kB / 0.6525 GB, free: 20.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008859/1.319, allocations: 383.5 kB / 0.6529 GB, free: 20.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007165/1.326, allocations: 1.956 MB / 0.6548 GB, free: 18.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/1.326, allocations: 8 kB / 0.6548 GB, free: 18.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/1.326, allocations: 4 kB / 0.6548 GB, free: 18.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/1.326, allocations: 3.984 kB / 0.6548 GB, free: 18.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003728/1.33, allocations: 1.551 MB / 0.6563 GB, free: 16.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003017/1.33, allocations: 112 kB / 0.6564 GB, free: 16.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/1.332, allocations: 171.8 kB / 0.6566 GB, free: 16.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/1.333, allocations: 260.3 kB / 0.6568 GB, free: 16.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003311/1.333, allocations: 39.98 kB / 0.6569 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009355/1.342, allocations: 13.23 MB / 0.6698 GB, free: 1.418 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.342, allocations: 128 / 0.6698 GB, free: 1.418 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005827/1.348, allocations: 2.13 MB / 0.6719 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/1.35, allocations: 0.4965 MB / 0.6724 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000949/1.351, allocations: 16 kB / 0.6724 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002622/1.354, allocations: 115.9 kB / 0.6725 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007566/1.355, allocations: 148.6 kB / 0.6726 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/1.355, allocations: 51.98 kB / 0.6727 GB, free: 14.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004702/1.36, allocations: 1.718 MB / 0.6744 GB, free: 12.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.36, allocations: 0 / 0.6744 GB, free: 12.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003561/1.363, allocations: 0.7106 MB / 0.675 GB, free: 11.91 MB / 426.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00245/1.366, allocations: 0.8987 MB / 0.6759 GB, free: 11.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005198/1.371, allocations: 2.211 MB / 0.6781 GB, free: 8.812 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/1.371, allocations: 8.047 kB / 0.6781 GB, free: 8.805 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003543/1.375, allocations: 1.787 MB / 0.6798 GB, free: 6.867 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/1.378, allocations: 491 kB / 0.6803 GB, free: 6.387 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/1.39, allocations: 3.602 MB / 0.6838 GB, free: 2.742 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/1.392, allocations: 1.727 MB / 0.6855 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007591/1.393, allocations: 151.4 kB / 0.6857 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of SimCode: time 1.824e-06/1.393, allocations: 3.938 kB / 0.6857 GB, free: 0.832 MB / 426.7 MB Notification: Performance of Templates: time 0.4705/1.863, allocations: 143.2 MB / 0.8255 GB, free: 13.88 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches