Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001518/0.001518, allocations: 181.3 kB / 17.41 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0006996/0.0006996, allocations: 93.41 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006353/0.0006356, allocations: 11.98 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1829, allocations: 47.56 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.3053, allocations: 102.5 MB / 478.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.3056, allocations: 75.97 kB / 478.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3874/0.6929, allocations: 122.1 MB / 0.5863 GB, free: 28.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.693, allocations: 11.94 kB / 0.5863 GB, free: 28.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.732e-05/0.693, allocations: 40 kB / 0.5863 GB, free: 28.06 MB / 378.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.005051/0.6981, allocations: 3.29 MB / 0.5895 GB, free: 24.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.6981, allocations: 8.031 kB / 0.5896 GB, free: 24.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004982/0.6987, allocations: 384.9 kB / 0.5899 GB, free: 24.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003201/0.7019, allocations: 2.451 MB / 0.5923 GB, free: 21.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.7019, allocations: 37 kB / 0.5924 GB, free: 21.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.7021, allocations: 51.91 kB / 0.5924 GB, free: 21.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.7034, allocations: 0.9002 MB / 0.5933 GB, free: 20.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.7035, allocations: 0 / 0.5933 GB, free: 20.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.235e-05/0.7035, allocations: 16 kB / 0.5933 GB, free: 20.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.106e-05/0.7036, allocations: 27.98 kB / 0.5933 GB, free: 20.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.7051, allocations: 0.9217 MB / 0.5942 GB, free: 19.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004409/0.7095, allocations: 3.03 MB / 0.5972 GB, free: 16.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.7109, allocations: 0.8505 MB / 0.598 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.7121, allocations: 0.9844 MB / 0.599 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/0.7416, allocations: 35.67 MB / 0.6338 GB, free: 6.051 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.7428, allocations: 0.627 MB / 0.6344 GB, free: 5.414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 2.905e-06/0.7428, allocations: 0 / 0.6344 GB, free: 5.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01183/0.7546, allocations: 5.772 MB / 0.6401 GB, free: 15.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.7548, allocations: 274 kB / 0.6403 GB, free: 15.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003865/0.7587, allocations: 2.678 MB / 0.6429 GB, free: 12.35 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.57e-05/0.7588, allocations: 45.7 kB / 0.643 GB, free: 12.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.7598, allocations: 1.299 MB / 0.6442 GB, free: 10.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.7601, allocations: 343.2 kB / 0.6446 GB, free: 10.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.939e-05/0.7602, allocations: 16 kB / 0.6446 GB, free: 10.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.7604, allocations: 349.9 kB / 0.6449 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.7616, allocations: 0.5176 MB / 0.6454 GB, free: 9.773 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.7629, allocations: 0.763 MB / 0.6462 GB, free: 8.922 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/0.7653, allocations: 1.247 MB / 0.6474 GB, free: 7.613 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.7654, allocations: 0 / 0.6474 GB, free: 7.613 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003824/0.7692, allocations: 2.097 MB / 0.6494 GB, free: 5.438 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.7692, allocations: 8 kB / 0.6494 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.7694, allocations: 120 kB / 0.6496 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006483/0.77, allocations: 276.8 kB / 0.6498 GB, free: 5.012 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008316/0.7709, allocations: 235.6 kB / 0.65 GB, free: 4.781 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1677/0.9386, allocations: 13.25 MB / 0.663 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/0.9413, allocations: 124.4 kB / 0.6631 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000247/0.9416, allocations: 61.25 kB / 0.6632 GB, free: 90.45 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 () * 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.001549/0.9431, allocations: 432.3 kB / 0.6636 GB, free: 90.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009779/0.9441, allocations: 371.3 kB / 0.6639 GB, free: 90.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00872/0.9529, allocations: 2.336 MB / 0.6662 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/0.9529, allocations: 15.41 kB / 0.6662 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/0.953, allocations: 3.719 kB / 0.6662 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.953, allocations: 3.703 kB / 0.6662 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/0.957, allocations: 1.54 MB / 0.6677 GB, free: 89.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002039/0.9572, allocations: 118 kB / 0.6678 GB, free: 89.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.9584, allocations: 174.5 kB / 0.668 GB, free: 89.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008815/0.9593, allocations: 262 kB / 0.6683 GB, free: 89.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/0.9595, allocations: 45.88 kB / 0.6683 GB, free: 89.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008971/0.9685, allocations: 13.26 MB / 0.6813 GB, free: 77.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.9685, allocations: 2.625 kB / 0.6813 GB, free: 77.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/0.9749, allocations: 2.724 MB / 0.6839 GB, free: 76.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.9759, allocations: 499 kB / 0.6844 GB, free: 76.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006348/0.9766, allocations: 16.66 kB / 0.6844 GB, free: 76.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.9778, allocations: 123 kB / 0.6845 GB, free: 76.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/0.9782, allocations: 141.6 kB / 0.6847 GB, free: 76.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.9783, allocations: 56.89 kB / 0.6847 GB, free: 76.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002984/0.9813, allocations: 1.747 MB / 0.6864 GB, free: 76.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9813, allocations: 0 / 0.6864 GB, free: 76.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002071/0.9834, allocations: 0.7127 MB / 0.6871 GB, free: 76.3 MB / 426.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.001516/0.9849, allocations: 0.9129 MB / 0.688 GB, free: 76.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003865/0.9888, allocations: 2.635 MB / 0.6906 GB, free: 74.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.976e-06/0.9888, allocations: 5.922 kB / 0.6906 GB, free: 74.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.9913, allocations: 2.009 MB / 0.6926 GB, free: 73.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.9936, allocations: 483.8 kB / 0.693 GB, free: 73.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006939/1.001, allocations: 5.397 MB / 0.6983 GB, free: 71.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/1.002, allocations: 1.662 MB / 0.6999 GB, free: 70.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/1.002, allocations: 148.5 kB / 0.7 GB, free: 70.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.153e-06/1.002, allocations: 3.938 kB / 0.7001 GB, free: 70.6 MB / 426.7 MB Notification: Performance of Templates: time 0.9468/1.949, allocations: 153.8 MB / 0.8502 GB, free: 123.1 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches