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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009562/0.0009564, allocations: 174.3 kB / 8.348 MB, free: 0.7266 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.333/1.333, allocations: 221.5 MB / 230.3 MB, free: 7.527 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.0009356/0.0009356, allocations: 96.53 kB / 281.2 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.766e-05/1.785e-05, allocations: 0 / 337 MB, free: 10.06 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 50.42 MB / 387.5 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.4933, allocations: 103.6 MB / 491 MB, free: 7.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.4936, allocations: 71.95 kB / 491.1 MB, free: 7.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5107/1.004, allocations: 134.1 MB / 0.6105 GB, free: 93.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.004, allocations: 0 / 0.6105 GB, free: 93.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.799e-05/1.004, allocations: 48.22 kB / 0.6106 GB, free: 93.03 MB / 426.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.004277/1.009, allocations: 2.635 MB / 0.6131 GB, free: 91.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.009, allocations: 7.781 kB / 0.6131 GB, free: 91.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004196/1.009, allocations: 380.7 kB / 0.6135 GB, free: 90.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/1.012, allocations: 2.229 MB / 0.6157 GB, free: 89.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/1.012, allocations: 32.69 kB / 0.6157 GB, free: 89.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/1.012, allocations: 31.66 kB / 0.6157 GB, free: 89.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008689/1.013, allocations: 0.6824 MB / 0.6164 GB, free: 89.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009149/1.014, allocations: 0.7297 MB / 0.6171 GB, free: 88.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/1.014, allocations: 0 / 0.6171 GB, free: 88.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.851e-05/1.014, allocations: 7.281 kB / 0.6171 GB, free: 88.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/1.014, allocations: 20.7 kB / 0.6171 GB, free: 88.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004431/1.019, allocations: 2.925 MB / 0.62 GB, free: 86.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007357/1.019, allocations: 0.6186 MB / 0.6206 GB, free: 85.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008/1.02, allocations: 0.861 MB / 0.6214 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02641/1.047, allocations: 35.84 MB / 0.6564 GB, free: 44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006199/1.047, allocations: 0.5003 MB / 0.6569 GB, free: 43.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.475e-06/1.047, allocations: 0 / 0.6569 GB, free: 43.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.005705/1.053, allocations: 3.353 MB / 0.6602 GB, free: 40 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.398e-05/1.053, allocations: 281.5 kB / 0.6605 GB, free: 39.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002447/1.056, allocations: 2.028 MB / 0.6625 GB, free: 37.63 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/1.056, allocations: 29.69 kB / 0.6625 GB, free: 37.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008465/1.057, allocations: 1.303 MB / 0.6638 GB, free: 36.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/1.057, allocations: 323.2 kB / 0.6641 GB, free: 35.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/1.057, allocations: 0 / 0.6641 GB, free: 35.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.339e-05/1.057, allocations: 345.9 kB / 0.6644 GB, free: 35.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004072/1.057, allocations: 310.6 kB / 0.6647 GB, free: 35.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/1.058, allocations: 0.5235 MB / 0.6652 GB, free: 34.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/1.058, allocations: 369.7 kB / 0.6656 GB, free: 34.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/1.058, allocations: 4 kB / 0.6656 GB, free: 34.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002146/1.061, allocations: 1.594 MB / 0.6671 GB, free: 32.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/1.061, allocations: 8 kB / 0.6671 GB, free: 32.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/1.061, allocations: 112 kB / 0.6672 GB, free: 32.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005608/1.061, allocations: 264.7 kB / 0.6675 GB, free: 32.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008455/1.062, allocations: 223.7 kB / 0.6677 GB, free: 32.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005952/1.068, allocations: 12.78 MB / 0.6802 GB, free: 18.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/1.071, allocations: 115.9 kB / 0.6803 GB, free: 18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/1.071, allocations: 59.98 kB / 0.6803 GB, free: 17.95 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.0002727/1.071, allocations: 136.7 kB / 0.6805 GB, free: 17.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003481/1.071, allocations: 367.6 kB / 0.6808 GB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003785/1.075, allocations: 1.896 MB / 0.6827 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/1.075, allocations: 12 kB / 0.6827 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.075, allocations: 11.94 kB / 0.6827 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.075, allocations: 3.984 kB / 0.6827 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/1.078, allocations: 1.433 MB / 0.6841 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001336/1.078, allocations: 115.9 kB / 0.6842 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007344/1.078, allocations: 163.8 kB / 0.6844 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005231/1.079, allocations: 256.4 kB / 0.6846 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/1.079, allocations: 31.98 kB / 0.6847 GB, free: 13.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005802/1.085, allocations: 12.78 MB / 0.6971 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.085, allocations: 0 / 0.6971 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/1.089, allocations: 2.056 MB / 0.6991 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/1.09, allocations: 0.4964 MB / 0.6996 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003663/1.09, allocations: 11.98 kB / 0.6996 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/1.091, allocations: 103.9 kB / 0.6997 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003505/1.092, allocations: 144.6 kB / 0.6999 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.703e-05/1.092, allocations: 43.98 kB / 0.6999 GB, free: 12.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002375/1.094, allocations: 1.524 MB / 0.7014 GB, free: 10.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.094, allocations: 0 / 0.7014 GB, free: 10.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0019/1.096, allocations: 0.6676 MB / 0.7021 GB, free: 10.32 MB / 442.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.001535/1.098, allocations: 0.9863 MB / 0.703 GB, free: 9.402 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002583/1.1, allocations: 2.108 MB / 0.7051 GB, free: 7.172 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.1, allocations: 4 kB / 0.7051 GB, free: 7.168 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/1.102, allocations: 1.711 MB / 0.7067 GB, free: 5.336 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/1.105, allocations: 0.5572 MB / 0.7073 GB, free: 4.773 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006129/1.111, allocations: 3.492 MB / 0.7107 GB, free: 1.234 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2626/1.373, allocations: 1.707 MB / 0.7124 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002075/1.376, allocations: 345.4 kB / 0.7127 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/1.376, allocations: 144.4 kB / 0.7128 GB, free: 103.2 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/1.376, allocations: 1.062 kB / 0.7128 GB, free: 103.2 MB / 442.7 MB Notification: Performance of Templates: time 0.06487/1.441, allocations: 31.96 MB / 0.744 GB, free: 101.7 MB / 442.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