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.001294/0.001294, allocations: 173.7 kB / 16.72 MB, free: 5.082 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.316/1.316, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.000841/0.000841, allocations: 90.36 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003262, allocations: 12 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2175, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009111/0.2266, allocations: 11.97 MB / 387.1 MB, free: 35.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.2443, allocations: 17.61 MB / 404.7 MB, free: 19.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002467/0.2468, allocations: 63.5 kB / 404.7 MB, free: 19.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.2495, allocations: 0.8438 MB / 405.6 MB, free: 18.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007246/0.2567, allocations: 1.801 MB / 407.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003407/0.2602, allocations: 1.077 MB / 408.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007942/0.2681, allocations: 5.883 MB / 414.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007542/0.2689, allocations: 416.9 kB / 414.7 MB, free: 8.941 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.27, allocations: 0.8318 MB / 415.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007772/0.2708, allocations: 0.963 MB / 416.5 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.2709, allocations: 44 kB / 416.6 MB, free: 7.094 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003438/0.2744, allocations: 1.081 MB / 417.7 MB, free: 6.012 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.2746, allocations: 270 kB / 417.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001093/0.2757, allocations: 1.252 MB / 419.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001897/0.2776, allocations: 2.644 MB / 421.8 MB, free: 1.828 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2777, allocations: 0 / 421.8 MB, free: 1.828 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2777, allocations: 0 / 421.8 MB, free: 1.828 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.2777, allocations: 3.938 kB / 421.8 MB, free: 1.824 MB / 298.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.004017/0.2817, allocations: 3.159 MB / 425 MB, free: 14.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2818, allocations: 8.031 kB / 425 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003725/0.2822, allocations: 383.4 kB / 425.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003608/0.2858, allocations: 2.564 MB / 427.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.2858, allocations: 33 kB / 428 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.286, allocations: 55.98 kB / 428 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.2874, allocations: 0.785 MB / 428.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2875, allocations: 3.938 kB / 428.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.2875, allocations: 16 kB / 428.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.2876, allocations: 23.98 kB / 428.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.2893, allocations: 0.9139 MB / 429.8 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004636/0.294, allocations: 3.025 MB / 432.8 MB, free: 6.645 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.2956, allocations: 0.8466 MB / 433.6 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.2971, allocations: 0.9878 MB / 434.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02799/0.3251, allocations: 30.18 MB / 464.8 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.3263, allocations: 0.6347 MB / 465.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 3.486e-06/0.3264, allocations: 0 / 465.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01235/0.3387, allocations: 5.705 MB / 471.1 MB, free: 11.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.3388, allocations: 64.41 kB / 471.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003838/0.3427, allocations: 2.686 MB / 473.9 MB, free: 9.129 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.3428, allocations: 41.7 kB / 473.9 MB, free: 9.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009853/0.3438, allocations: 1.299 MB / 475.2 MB, free: 7.777 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.3441, allocations: 335.2 kB / 475.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.672e-05/0.3442, allocations: 19.98 kB / 475.6 MB, free: 7.426 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3443, allocations: 345.9 kB / 475.9 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.3456, allocations: 0.5215 MB / 476.4 MB, free: 6.559 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.3469, allocations: 0.7134 MB / 477.1 MB, free: 5.781 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002539/0.3495, allocations: 1.251 MB / 478.4 MB, free: 4.469 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3495, allocations: 4 kB / 478.4 MB, free: 4.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004008/0.3535, allocations: 2.096 MB / 480.5 MB, free: 2.285 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3535, allocations: 11.28 kB / 480.5 MB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/0.3537, allocations: 120 kB / 480.6 MB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/0.3544, allocations: 268.9 kB / 480.9 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008749/0.3553, allocations: 223.7 kB / 481.1 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008371/0.3636, allocations: 13.26 MB / 494.4 MB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.365, allocations: 120 kB / 494.5 MB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.3652, allocations: 60 kB / 494.5 MB, free: 2.887 MB / 378.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 () * 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 (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.0009058/0.3661, allocations: 426.1 kB / 495 MB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000543/0.3666, allocations: 367.6 kB / 495.3 MB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005315/0.372, allocations: 2.359 MB / 497.7 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.372, allocations: 8 kB / 497.7 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.372, allocations: 12 kB / 497.7 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.106e-06/0.372, allocations: 3.984 kB / 497.7 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/0.3745, allocations: 1.551 MB / 499.2 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001501/0.3746, allocations: 120 kB / 499.4 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007391/0.3754, allocations: 163.8 kB / 499.5 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006166/0.376, allocations: 268.3 kB / 499.8 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.3761, allocations: 43.92 kB / 499.8 MB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1585/0.5347, allocations: 13.23 MB / 0.501 GB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.5347, allocations: 0 / 0.501 GB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005352/0.5401, allocations: 2.73 MB / 0.5037 GB, free: 124.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007105/0.5408, allocations: 0.4908 MB / 0.5042 GB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.5411, allocations: 19.7 kB / 0.5042 GB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000936/0.542, allocations: 109.4 kB / 0.5043 GB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003558/0.5424, allocations: 141.7 kB / 0.5044 GB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.5425, allocations: 50.77 kB / 0.5045 GB, free: 124.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002784/0.5453, allocations: 1.754 MB / 0.5062 GB, free: 124.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5453, allocations: 1.531 kB / 0.5062 GB, free: 124.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002106/0.5474, allocations: 0.6534 MB / 0.5068 GB, free: 124.3 MB / 394.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 (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.001367/0.5488, allocations: 0.8186 MB / 0.5076 GB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003681/0.5525, allocations: 2.644 MB / 0.5102 GB, free: 122.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5525, allocations: 0 / 0.5102 GB, free: 122.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.5546, allocations: 2.014 MB / 0.5122 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.5561, allocations: 0.4886 MB / 0.5127 GB, free: 120.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005168/0.5613, allocations: 5.41 MB / 0.5179 GB, free: 117.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007354/0.5621, allocations: 1.661 MB / 0.5196 GB, free: 115.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/0.5624, allocations: 167.4 kB / 0.5197 GB, free: 115.6 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5624, allocations: 4 kB / 0.5197 GB, free: 115.6 MB / 394.7 MB Notification: Performance of Templates: time 0.2676/0.83, allocations: 154.6 MB / 0.6707 GB, free: 144.3 MB / 426.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/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_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches