Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008805/0.0008805, allocations: 103.2 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.108e-05, allocations: 4 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 51.48 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3738/0.477, allocations: 104.4 MB / 499.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.4773, allocations: 70.14 kB / 499.6 MB, free: 4.961 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5277/1.005, allocations: 134.5 MB / 0.6192 GB, free: 80.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.005, allocations: 0 / 0.6192 GB, free: 80.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.294e-05/1.005, allocations: 42.34 kB / 0.6193 GB, free: 80.93 MB / 442.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.005274/1.01, allocations: 2.638 MB / 0.6219 GB, free: 79.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/1.011, allocations: 11.62 kB / 0.6219 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005044/1.011, allocations: 375.8 kB / 0.6222 GB, free: 79.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002951/1.014, allocations: 2.237 MB / 0.6244 GB, free: 78.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/1.014, allocations: 18.06 kB / 0.6244 GB, free: 78.67 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/1.014, allocations: 39.8 kB / 0.6245 GB, free: 78.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001053/1.015, allocations: 0.6803 MB / 0.6251 GB, free: 78.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/1.016, allocations: 0.7282 MB / 0.6258 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/1.016, allocations: 6.578 kB / 0.6259 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.789e-05/1.016, allocations: 1.094 kB / 0.6259 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/1.016, allocations: 22.5 kB / 0.6259 GB, free: 78.53 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004786/1.021, allocations: 2.92 MB / 0.6287 GB, free: 78.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008916/1.022, allocations: 0.6178 MB / 0.6293 GB, free: 78.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/1.023, allocations: 0.8636 MB / 0.6302 GB, free: 78.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02873/1.052, allocations: 36.51 MB / 0.6658 GB, free: 48.53 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006319/1.053, allocations: 0.4901 MB / 0.6663 GB, free: 48.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.454e-06/1.053, allocations: 0 / 0.6663 GB, free: 48.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.005408/1.058, allocations: 3.352 MB / 0.6696 GB, free: 46.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/1.058, allocations: 282.5 kB / 0.6699 GB, free: 46.24 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/1.06, allocations: 2.031 MB / 0.6718 GB, free: 45.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.212e-05/1.06, allocations: 29.7 kB / 0.6719 GB, free: 45.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008488/1.061, allocations: 1.299 MB / 0.6731 GB, free: 44.35 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/1.061, allocations: 325.7 kB / 0.6734 GB, free: 44.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.61e-05/1.062, allocations: 0 / 0.6734 GB, free: 44.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.928e-05/1.062, allocations: 347.4 kB / 0.6738 GB, free: 43.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003952/1.062, allocations: 310.5 kB / 0.6741 GB, free: 43.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/1.062, allocations: 0.5208 MB / 0.6746 GB, free: 43.24 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004868/1.063, allocations: 375.6 kB / 0.6749 GB, free: 43.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.063, allocations: 0 / 0.6749 GB, free: 43.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001969/1.065, allocations: 1.598 MB / 0.6765 GB, free: 42.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/1.065, allocations: 6.281 kB / 0.6765 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/1.065, allocations: 121.7 kB / 0.6766 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/1.066, allocations: 251.3 kB / 0.6769 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008732/1.067, allocations: 237.7 kB / 0.6771 GB, free: 42.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005545/1.072, allocations: 12.78 MB / 0.6896 GB, free: 29.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/1.074, allocations: 106.1 kB / 0.6897 GB, free: 29.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/1.074, allocations: 59.39 kB / 0.6897 GB, free: 29.34 MB / 442.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.0002726/1.074, allocations: 137.9 kB / 0.6899 GB, free: 29.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003357/1.075, allocations: 369.6 kB / 0.6902 GB, free: 29.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003642/1.078, allocations: 1.902 MB / 0.6921 GB, free: 28.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/1.078, allocations: 7.688 kB / 0.6921 GB, free: 28.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/1.078, allocations: 11.75 kB / 0.6921 GB, free: 28.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/1.078, allocations: 3.422 kB / 0.6921 GB, free: 28.09 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/1.081, allocations: 1.431 MB / 0.6935 GB, free: 27.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001288/1.081, allocations: 112.5 kB / 0.6936 GB, free: 27.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007021/1.081, allocations: 171.4 kB / 0.6938 GB, free: 27.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004891/1.082, allocations: 251.8 kB / 0.694 GB, free: 27.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.642e-05/1.082, allocations: 37.38 kB / 0.694 GB, free: 27.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006934/1.089, allocations: 12.77 MB / 0.7065 GB, free: 30.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.089, allocations: 0 / 0.7065 GB, free: 30.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002995/1.092, allocations: 2.05 MB / 0.7085 GB, free: 29.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/1.093, allocations: 0.4962 MB / 0.709 GB, free: 29.14 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003336/1.093, allocations: 11.47 kB / 0.709 GB, free: 29.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.094, allocations: 102.3 kB / 0.7091 GB, free: 29.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/1.095, allocations: 146.7 kB / 0.7092 GB, free: 29.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.888e-05/1.095, allocations: 53.45 kB / 0.7093 GB, free: 29.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002229/1.097, allocations: 1.522 MB / 0.7108 GB, free: 28.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.097, allocations: 0 / 0.7108 GB, free: 28.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002255/1.099, allocations: 0.6724 MB / 0.7114 GB, free: 28.38 MB / 458.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.001405/1.101, allocations: 0.9787 MB / 0.7124 GB, free: 28.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002362/1.103, allocations: 2.108 MB / 0.7144 GB, free: 26.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/1.103, allocations: 0 / 0.7144 GB, free: 26.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001584/1.105, allocations: 1.722 MB / 0.7161 GB, free: 25.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/1.108, allocations: 0.5542 MB / 0.7167 GB, free: 24.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005421/1.113, allocations: 3.487 MB / 0.7201 GB, free: 23.34 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/1.114, allocations: 1.713 MB / 0.7217 GB, free: 22.35 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001368/1.116, allocations: 340.8 kB / 0.7221 GB, free: 22.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000255/1.116, allocations: 147.4 kB / 0.7222 GB, free: 21.96 MB / 458.7 MB Notification: Performance of SimCode: time 9.32e-07/1.116, allocations: 0 / 0.7222 GB, free: 21.96 MB / 458.7 MB Notification: Performance of Templates: time 0.2953/1.411, allocations: 31.97 MB / 0.7534 GB, free: 91.88 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches