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.001032/0.001032, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 221.3 MB / 235.5 MB, free: 2.875 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.0009715/0.0009718, allocations: 96.42 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.526e-05, allocations: 0 / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.08872, allocations: 50.42 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3166/0.4053, allocations: 104.2 MB / 498.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.4056, allocations: 75.8 kB / 498.6 MB, free: 15.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.475/0.8806, allocations: 139.3 MB / 0.6229 GB, free: 81.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.8806, allocations: 0 / 0.6229 GB, free: 81.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.468e-05/0.8807, allocations: 44 kB / 0.623 GB, free: 81.23 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.004017/0.8847, allocations: 2.625 MB / 0.6255 GB, free: 78.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.8848, allocations: 8.031 kB / 0.6256 GB, free: 78.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/0.8851, allocations: 379.4 kB / 0.6259 GB, free: 78.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003032/0.8882, allocations: 2.237 MB / 0.6281 GB, free: 75.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.8882, allocations: 44.88 kB / 0.6281 GB, free: 75.81 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.8883, allocations: 51.91 kB / 0.6282 GB, free: 75.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009758/0.8893, allocations: 0.7871 MB / 0.629 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.8893, allocations: 4 kB / 0.629 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-05/0.8894, allocations: 20 kB / 0.629 GB, free: 74.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.8894, allocations: 23.98 kB / 0.629 GB, free: 74.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008261/0.8903, allocations: 0.7072 MB / 0.6297 GB, free: 74.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0042/0.8945, allocations: 3.031 MB / 0.6327 GB, free: 71.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008192/0.8953, allocations: 0.6549 MB / 0.6333 GB, free: 70.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008536/0.8962, allocations: 0.8799 MB / 0.6342 GB, free: 69.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02603/0.9222, allocations: 35.87 MB / 0.6692 GB, free: 28.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006684/0.9229, allocations: 0.5174 MB / 0.6697 GB, free: 28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.815e-06/0.9229, allocations: 0 / 0.6697 GB, free: 28 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.005366/0.9283, allocations: 3.476 MB / 0.6731 GB, free: 24.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.9284, allocations: 273.8 kB / 0.6733 GB, free: 24.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/0.9307, allocations: 2.213 MB / 0.6755 GB, free: 21.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.66e-05/0.9308, allocations: 41.7 kB / 0.6755 GB, free: 21.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008007/0.9316, allocations: 1.299 MB / 0.6768 GB, free: 20.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.9318, allocations: 339.1 kB / 0.6771 GB, free: 20.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.316e-05/0.9319, allocations: 16 kB / 0.6772 GB, free: 20.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.182e-05/0.9319, allocations: 349.9 kB / 0.6775 GB, free: 19.78 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004598/0.9324, allocations: 330.3 kB / 0.6778 GB, free: 19.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.9329, allocations: 0.5444 MB / 0.6783 GB, free: 18.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005099/0.9334, allocations: 380.6 kB / 0.6787 GB, free: 18.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.9335, allocations: 0 / 0.6787 GB, free: 18.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002135/0.9356, allocations: 1.686 MB / 0.6803 GB, free: 16.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.9356, allocations: 8 kB / 0.6804 GB, free: 16.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/0.9358, allocations: 116 kB / 0.6805 GB, free: 16.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005634/0.9363, allocations: 268.9 kB / 0.6807 GB, free: 16.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000844/0.9372, allocations: 231.7 kB / 0.6809 GB, free: 16.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006037/0.9432, allocations: 13.24 MB / 0.6939 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/0.945, allocations: 131.9 kB / 0.694 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.9451, allocations: 60.02 kB / 0.6941 GB, free: 1.297 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.0002402/0.9454, allocations: 178.1 kB / 0.6942 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002871/0.9457, allocations: 371.5 kB / 0.6946 GB, free: 0.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/0.9496, allocations: 1.955 MB / 0.6965 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.9497, allocations: 8 kB / 0.6965 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.9497, allocations: 4 kB / 0.6965 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.9497, allocations: 3.984 kB / 0.6965 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.9519, allocations: 1.543 MB / 0.698 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001403/0.952, allocations: 112 kB / 0.6981 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007354/0.9528, allocations: 171.8 kB / 0.6983 GB, free: 12.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005922/0.9534, allocations: 260.4 kB / 0.6985 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-05/0.9535, allocations: 39.98 kB / 0.6986 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2675/1.221, allocations: 13.22 MB / 0.7115 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.221, allocations: 4.625 kB / 0.7115 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003952/1.225, allocations: 2.114 MB / 0.7135 GB, free: 96.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.226, allocations: 499.9 kB / 0.714 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/1.227, allocations: 21.25 kB / 0.714 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/1.228, allocations: 118.8 kB / 0.7142 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004077/1.228, allocations: 141.8 kB / 0.7143 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/1.228, allocations: 47.97 kB / 0.7143 GB, free: 96.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002611/1.231, allocations: 1.703 MB / 0.716 GB, free: 96.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.231, allocations: 0.75 kB / 0.716 GB, free: 96.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002093/1.233, allocations: 0.7077 MB / 0.7167 GB, free: 96.5 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.001539/1.235, allocations: 0.9038 MB / 0.7176 GB, free: 96.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002556/1.237, allocations: 2.218 MB / 0.7197 GB, free: 95.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.237, allocations: 1 kB / 0.7197 GB, free: 95.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/1.239, allocations: 1.792 MB / 0.7215 GB, free: 93.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/1.242, allocations: 0.577 MB / 0.7221 GB, free: 93.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007187/1.249, allocations: 3.516 MB / 0.7255 GB, free: 92.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/1.25, allocations: 1.717 MB / 0.7272 GB, free: 92.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001708/1.252, allocations: 343.2 kB / 0.7275 GB, free: 92.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/1.252, allocations: 146.5 kB / 0.7276 GB, free: 92.15 MB / 442.7 MB Notification: Performance of SimCode: time 8.11e-07/1.252, allocations: 0 / 0.7276 GB, free: 92.15 MB / 442.7 MB Notification: Performance of Templates: time 0.05889/1.311, allocations: 36.47 MB / 0.7632 GB, free: 89.2 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