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/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_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") [: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 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 189.9 kB / 8.483 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 205.2 MB / 214.1 MB, free: 13.94 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.0009311/0.0009311, allocations: 90.58 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.532e-06/6.572e-06, allocations: 0 / 315 MB, free: 8.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.214, allocations: 47.55 MB / 362.5 MB, free: 45.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.3265, allocations: 101.5 MB / 464.1 MB, free: 360 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.3269, allocations: 71.97 kB / 464.1 MB, free: 288 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.4188/0.7456, allocations: 119.6 MB / 0.5701 GB, free: 71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.128e-05/0.7458, allocations: 44 kB / 0.5701 GB, free: 70.96 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.005471/0.7512, allocations: 2.693 MB / 0.5727 GB, free: 68.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.7513, allocations: 8.031 kB / 0.5727 GB, free: 68.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008416/0.7522, allocations: 387.3 kB / 0.5731 GB, free: 67.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004635/0.7568, allocations: 2.254 MB / 0.5753 GB, free: 65.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/0.7569, allocations: 19.91 kB / 0.5753 GB, free: 65.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.7572, allocations: 31.98 kB / 0.5754 GB, free: 65.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001518/0.7588, allocations: 0.6818 MB / 0.576 GB, free: 64.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.7601, allocations: 0.7312 MB / 0.5767 GB, free: 64.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.7601, allocations: 3.906 kB / 0.5767 GB, free: 64.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.7602, allocations: 0 / 0.5767 GB, free: 64.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.692e-05/0.7603, allocations: 19.98 kB / 0.5768 GB, free: 64.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006773/0.7671, allocations: 2.963 MB / 0.5797 GB, free: 61.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007097/0.7678, allocations: 435.3 kB / 0.5801 GB, free: 60.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009155/0.7688, allocations: 0.8276 MB / 0.5809 GB, free: 59.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03169/0.8005, allocations: 35.84 MB / 0.6159 GB, free: 18.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007083/0.8013, allocations: 483.7 kB / 0.6163 GB, free: 18.31 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.348e-06/0.8013, allocations: 4 kB / 0.6163 GB, free: 18.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.006282/0.8076, allocations: 3.355 MB / 0.6196 GB, free: 14.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.8077, allocations: 273.8 kB / 0.6199 GB, free: 14.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.8105, allocations: 2.037 MB / 0.6219 GB, free: 12.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001518/0.8107, allocations: 41.69 kB / 0.6219 GB, free: 12.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.811, allocations: 0.4986 MB / 0.6224 GB, free: 11.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.8112, allocations: 331.2 kB / 0.6227 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.8113, allocations: 3.938 kB / 0.6227 GB, free: 11.56 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.405e-05/0.8113, allocations: 341.9 kB / 0.623 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/0.8118, allocations: 310.3 kB / 0.6233 GB, free: 10.92 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005357/0.8123, allocations: 0.5191 MB / 0.6238 GB, free: 10.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005815/0.8129, allocations: 374.8 kB / 0.6242 GB, free: 9.945 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.8129, allocations: 5.125 kB / 0.6242 GB, free: 9.941 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002489/0.8154, allocations: 1.606 MB / 0.6258 GB, free: 8.258 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.8155, allocations: 4 kB / 0.6258 GB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/0.8156, allocations: 116.5 kB / 0.6259 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006432/0.8163, allocations: 256.4 kB / 0.6261 GB, free: 7.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009229/0.8172, allocations: 255.5 kB / 0.6264 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008755/0.826, allocations: 12.69 MB / 0.6388 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.8281, allocations: 120 kB / 0.6389 GB, free: 9.648 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002385/0.8284, allocations: 56 kB / 0.6389 GB, free: 9.594 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.0003488/0.8287, allocations: 143.4 kB / 0.6391 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005986/0.8293, allocations: 379.5 kB / 0.6394 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005845/0.8352, allocations: 2.131 MB / 0.6415 GB, free: 6.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.8352, allocations: 15.91 kB / 0.6415 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.8353, allocations: 8 kB / 0.6415 GB, free: 6.844 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.8353, allocations: 3.984 kB / 0.6415 GB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.838, allocations: 1.443 MB / 0.643 GB, free: 5.355 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001931/0.8383, allocations: 116 kB / 0.6431 GB, free: 5.242 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008594/0.8391, allocations: 183.8 kB / 0.6432 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000726/0.8399, allocations: 260.2 kB / 0.6435 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.84, allocations: 35.98 kB / 0.6435 GB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1368/0.9768, allocations: 12.69 MB / 0.6559 GB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.9769, allocations: 0 / 0.6559 GB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002991/0.9799, allocations: 2.037 MB / 0.6579 GB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009583/0.9808, allocations: 0.5014 MB / 0.6584 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004178/0.9813, allocations: 13.22 kB / 0.6584 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.9824, allocations: 123.2 kB / 0.6585 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.9826, allocations: 114.4 kB / 0.6586 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.9827, allocations: 53.41 kB / 0.6587 GB, free: 122.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002017/0.9848, allocations: 1.532 MB / 0.6602 GB, free: 122 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001617/0.9864, allocations: 0.6704 MB / 0.6608 GB, free: 122 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) * 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.001276/0.9877, allocations: 0.9871 MB / 0.6618 GB, free: 121.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.9899, allocations: 2.049 MB / 0.6638 GB, free: 120.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.9899, allocations: 3.562 kB / 0.6638 GB, free: 120.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.9915, allocations: 1.647 MB / 0.6654 GB, free: 119.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.9934, allocations: 456.5 kB / 0.6658 GB, free: 119.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005945/0.9993, allocations: 3.495 MB / 0.6693 GB, free: 118.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.001, allocations: 1.858 MB / 0.6711 GB, free: 118 MB / 410.7 MB Notification: Performance of SimCode: time 7.21e-07/1.001, allocations: 0 / 0.6711 GB, free: 118 MB / 410.7 MB Notification: Performance of Templates: time 0.05612/1.057, allocations: 34.35 MB / 0.7046 GB, free: 113.9 MB / 410.7 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