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.001439/0.001439, allocations: 176.7 kB / 17.4 MB, free: 4.422 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.362/1.362, allocations: 223.3 MB / 241.4 MB, free: 9.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007612/0.0007609, allocations: 101.8 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002907, allocations: 16 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1856, allocations: 50.4 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.2939, allocations: 104.4 MB / 0.4952 GB, free: 7.879 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.2941, allocations: 71.97 kB / 0.4953 GB, free: 7.809 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4078/0.702, allocations: 137.3 MB / 0.6294 GB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.702, allocations: 0 / 0.6294 GB, free: 13.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.672e-05/0.7021, allocations: 40 kB / 0.6294 GB, free: 13.55 MB / 410.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.006583/0.7087, allocations: 3.267 MB / 0.6326 GB, free: 10.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.7087, allocations: 12.03 kB / 0.6326 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006314/0.7094, allocations: 380.2 kB / 0.633 GB, free: 9.828 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004364/0.7137, allocations: 2.435 MB / 0.6354 GB, free: 7.316 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.7138, allocations: 33 kB / 0.6354 GB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.714, allocations: 51.89 kB / 0.6355 GB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.7158, allocations: 0.9041 MB / 0.6363 GB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.7158, allocations: 0 / 0.6363 GB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.843e-05/0.7159, allocations: 19.98 kB / 0.6364 GB, free: 6.273 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.592e-05/0.7159, allocations: 19.98 kB / 0.6364 GB, free: 6.254 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/0.7178, allocations: 0.9139 MB / 0.6373 GB, free: 5.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005778/0.7236, allocations: 3.013 MB / 0.6402 GB, free: 2.262 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.7253, allocations: 0.8652 MB / 0.6411 GB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.7271, allocations: 0.9882 MB / 0.642 GB, free: 396 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2229/0.95, allocations: 35.54 MB / 0.6767 GB, free: 88.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.9512, allocations: 0.6287 MB / 0.6774 GB, free: 88.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 3.517e-06/0.9513, allocations: 0 / 0.6774 GB, free: 88.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01099/0.9623, allocations: 5.757 MB / 0.683 GB, free: 86.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.182e-05/0.9624, allocations: 273.8 kB / 0.6832 GB, free: 86.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.966, allocations: 2.658 MB / 0.6858 GB, free: 85.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.24e-05/0.9661, allocations: 45.08 kB / 0.6859 GB, free: 85.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.9672, allocations: 1.304 MB / 0.6871 GB, free: 85.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.9674, allocations: 338.8 kB / 0.6875 GB, free: 85.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.155e-05/0.9675, allocations: 20.53 kB / 0.6875 GB, free: 85.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.331e-05/0.9676, allocations: 349.1 kB / 0.6878 GB, free: 85.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.9687, allocations: 0.5243 MB / 0.6883 GB, free: 85.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/0.97, allocations: 0.751 MB / 0.6891 GB, free: 85.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/0.9723, allocations: 1.252 MB / 0.6903 GB, free: 84.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.9723, allocations: 1.656 kB / 0.6903 GB, free: 84.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003639/0.976, allocations: 2.085 MB / 0.6923 GB, free: 84.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.976, allocations: 9.094 kB / 0.6923 GB, free: 84.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/0.9761, allocations: 123.3 kB / 0.6925 GB, free: 84.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005744/0.9767, allocations: 261.4 kB / 0.6927 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008684/0.9776, allocations: 230.3 kB / 0.6929 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005926/0.9835, allocations: 13.27 MB / 0.7059 GB, free: 71.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.9851, allocations: 125.6 kB / 0.706 GB, free: 71.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/0.9853, allocations: 58.95 kB / 0.7061 GB, free: 71.75 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 () * Number of clocked 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.00108/0.9864, allocations: 436.5 kB / 0.7065 GB, free: 71.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005188/0.9869, allocations: 366 kB / 0.7068 GB, free: 71.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004831/0.9917, allocations: 2.331 MB / 0.7091 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.9918, allocations: 7.281 kB / 0.7091 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.9918, allocations: 2.469 kB / 0.7091 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.9918, allocations: 6.047 kB / 0.7091 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.994, allocations: 1.542 MB / 0.7106 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001343/0.9942, allocations: 121.6 kB / 0.7107 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006522/0.9948, allocations: 163.5 kB / 0.7109 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000517/0.9954, allocations: 261.5 kB / 0.7111 GB, free: 70.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.691e-05/0.9955, allocations: 44.58 kB / 0.7112 GB, free: 70.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005793/1.001, allocations: 13.27 MB / 0.7241 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.001, allocations: 0 / 0.7241 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004764/1.006, allocations: 2.722 MB / 0.7268 GB, free: 57.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009321/1.007, allocations: 498.4 kB / 0.7273 GB, free: 57.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004752/1.008, allocations: 21.41 kB / 0.7273 GB, free: 57.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/1.009, allocations: 115.3 kB / 0.7274 GB, free: 57.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/1.009, allocations: 142.6 kB / 0.7275 GB, free: 57.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.196e-05/1.009, allocations: 56.94 kB / 0.7276 GB, free: 57.35 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002358/1.011, allocations: 1.733 MB / 0.7293 GB, free: 57.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.011, allocations: 0 / 0.7293 GB, free: 57.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001694/1.013, allocations: 0.7105 MB / 0.73 GB, free: 57.17 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) * Number of clocked states: 0 () * 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.001277/1.014, allocations: 0.9088 MB / 0.7309 GB, free: 57.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004004/1.018, allocations: 2.642 MB / 0.7334 GB, free: 55.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.018, allocations: 0 / 0.7334 GB, free: 55.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003155/1.022, allocations: 2.006 MB / 0.7354 GB, free: 54.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003724/1.025, allocations: 0.5775 MB / 0.736 GB, free: 54.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008419/1.034, allocations: 5.307 MB / 0.7412 GB, free: 52.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/1.035, allocations: 1.659 MB / 0.7428 GB, free: 51.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002087/1.037, allocations: 341.7 kB / 0.7431 GB, free: 51.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/1.037, allocations: 146.7 kB / 0.7432 GB, free: 51.32 MB / 442.7 MB Notification: Performance of SimCode: time 8.51e-07/1.037, allocations: 0 / 0.7432 GB, free: 51.32 MB / 442.7 MB Notification: Performance of Templates: time 0.07967/1.117, allocations: 36.97 MB / 0.7793 GB, free: 34.68 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/jenkins1/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