Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 184.2 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 100 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.022e-05/1.026e-05, allocations: 4 kB / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1957, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.2995, allocations: 103.5 MB / 490.4 MB, free: 15.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.2997, allocations: 73.94 kB / 490.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3909/0.6906, allocations: 134.8 MB / 0.6106 GB, free: 12.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.862e-05/0.6908, allocations: 44 kB / 0.6106 GB, free: 12.27 MB / 394.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.005269/0.696, allocations: 2.667 MB / 0.6132 GB, free: 9.547 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.6961, allocations: 12.03 kB / 0.6132 GB, free: 9.535 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006843/0.6968, allocations: 383.4 kB / 0.6136 GB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004207/0.701, allocations: 2.236 MB / 0.6158 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.7011, allocations: 16 kB / 0.6158 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.7013, allocations: 35.89 kB / 0.6158 GB, free: 6.793 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001241/0.7025, allocations: 0.6779 MB / 0.6165 GB, free: 6.117 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.7037, allocations: 0.7344 MB / 0.6172 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.7037, allocations: 0 / 0.6172 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.619e-05/0.7038, allocations: 3.906 kB / 0.6172 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-05/0.7038, allocations: 23.98 kB / 0.6172 GB, free: 5.324 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006372/0.7102, allocations: 2.952 MB / 0.6201 GB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000717/0.7109, allocations: 439.3 kB / 0.6205 GB, free: 1.883 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.7121, allocations: 0.8228 MB / 0.6213 GB, free: 1.059 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1593/0.8714, allocations: 35.72 MB / 0.6562 GB, free: 113.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005906/0.872, allocations: 484 kB / 0.6567 GB, free: 113.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.526e-06/0.872, allocations: 0 / 0.6567 GB, free: 113.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.005688/0.8777, allocations: 3.368 MB / 0.66 GB, free: 112.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/0.8778, allocations: 274.3 kB / 0.6602 GB, free: 112.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002306/0.8801, allocations: 2.031 MB / 0.6622 GB, free: 112.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.8802, allocations: 28.89 kB / 0.6623 GB, free: 112.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/0.8805, allocations: 0.4979 MB / 0.6627 GB, free: 112 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.8807, allocations: 323.8 kB / 0.663 GB, free: 111.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/0.8808, allocations: 3 kB / 0.6631 GB, free: 111.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.8809, allocations: 348.7 kB / 0.6634 GB, free: 111.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004504/0.8813, allocations: 307.6 kB / 0.6637 GB, free: 111.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.8819, allocations: 0.5266 MB / 0.6642 GB, free: 111.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.8824, allocations: 363.9 kB / 0.6645 GB, free: 111.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.8824, allocations: 3.5 kB / 0.6645 GB, free: 111.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002158/0.8846, allocations: 1.603 MB / 0.6661 GB, free: 110.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.8846, allocations: 6.719 kB / 0.6661 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/0.8848, allocations: 118.1 kB / 0.6662 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005891/0.8854, allocations: 255.8 kB / 0.6665 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009203/0.8863, allocations: 246.2 kB / 0.6667 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005999/0.8923, allocations: 12.7 MB / 0.6791 GB, free: 98.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.894, allocations: 119 kB / 0.6792 GB, free: 98.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.8941, allocations: 61.16 kB / 0.6793 GB, free: 98.73 MB / 426.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.0002267/0.8943, allocations: 138 kB / 0.6794 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.8946, allocations: 369.5 kB / 0.6798 GB, free: 98.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004729/0.8994, allocations: 2.139 MB / 0.6819 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.8994, allocations: 11.69 kB / 0.6819 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.8994, allocations: 3.906 kB / 0.6819 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.8994, allocations: 3.891 kB / 0.6819 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.9013, allocations: 1.437 MB / 0.6833 GB, free: 97.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001548/0.9015, allocations: 113.2 kB / 0.6834 GB, free: 97.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007874/0.9023, allocations: 184.8 kB / 0.6836 GB, free: 97.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005813/0.9029, allocations: 250.7 kB / 0.6838 GB, free: 97.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.82e-05/0.903, allocations: 37.92 kB / 0.6838 GB, free: 97.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006117/0.9091, allocations: 12.69 MB / 0.6962 GB, free: 85.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.9092, allocations: 0 / 0.6962 GB, free: 85.84 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003118/0.9123, allocations: 2.034 MB / 0.6982 GB, free: 85.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001/0.9133, allocations: 0.4991 MB / 0.6987 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000429/0.9138, allocations: 12.58 kB / 0.6987 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.9149, allocations: 120.6 kB / 0.6988 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/0.9152, allocations: 119.8 kB / 0.6989 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.935e-05/0.9153, allocations: 49.52 kB / 0.699 GB, free: 84.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001905/0.9172, allocations: 1.521 MB / 0.7005 GB, free: 84.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001605/0.9188, allocations: 0.6621 MB / 0.7011 GB, free: 84.8 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.001269/0.9201, allocations: 0.9851 MB / 0.7021 GB, free: 84.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.9223, allocations: 2.05 MB / 0.7041 GB, free: 83.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.9223, allocations: 0 / 0.7041 GB, free: 83.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.9237, allocations: 1.654 MB / 0.7057 GB, free: 82.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.926, allocations: 0.5479 MB / 0.7062 GB, free: 82.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005774/0.9318, allocations: 3.478 MB / 0.7096 GB, free: 81.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/0.9329, allocations: 1.857 MB / 0.7114 GB, free: 80.74 MB / 426.7 MB Notification: Performance of SimCode: time 5.01e-07/0.933, allocations: 2.75 kB / 0.7114 GB, free: 80.74 MB / 426.7 MB Notification: Performance of Templates: time 0.0554/0.9884, allocations: 34.31 MB / 0.745 GB, free: 78.5 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches