Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.000894/0.0008941, allocations: 183.8 kB / 18.04 MB, free: 3.777 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.246/1.246, allocations: 205.4 MB / 224.2 MB, free: 9.027 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.0007251/0.0007251, allocations: 85.5 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.195, allocations: 47.58 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.2955, allocations: 102.5 MB / 479.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.2958, allocations: 75.97 kB / 479.5 MB, free: 9.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3695/0.6653, allocations: 122.1 MB / 0.5876 GB, free: 28.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6653, allocations: 4 kB / 0.5876 GB, free: 28.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.801e-05/0.6654, allocations: 40 kB / 0.5876 GB, free: 28 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.004596/0.67, allocations: 3.286 MB / 0.5908 GB, free: 24.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.67, allocations: 8.031 kB / 0.5908 GB, free: 24.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003744/0.6704, allocations: 384.9 kB / 0.5912 GB, free: 24.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.6732, allocations: 2.451 MB / 0.5936 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.6733, allocations: 37 kB / 0.5936 GB, free: 21.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.6734, allocations: 47.91 kB / 0.5937 GB, free: 21.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.6747, allocations: 0.9041 MB / 0.5946 GB, free: 20.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.6747, allocations: 0 / 0.5946 GB, free: 20.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.755e-05/0.6748, allocations: 19.98 kB / 0.5946 GB, free: 20.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.6748, allocations: 24 kB / 0.5946 GB, free: 20.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.6763, allocations: 0.9217 MB / 0.5955 GB, free: 19.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004081/0.6804, allocations: 3.038 MB / 0.5985 GB, free: 16.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.6819, allocations: 0.8464 MB / 0.5993 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.6831, allocations: 0.9844 MB / 0.6003 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02866/0.7118, allocations: 35.67 MB / 0.6351 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.7129, allocations: 0.627 MB / 0.6357 GB, free: 5.355 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 2.605e-06/0.7129, allocations: 0 / 0.6357 GB, free: 5.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01141/0.7243, allocations: 5.772 MB / 0.6413 GB, free: 15.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.7245, allocations: 274 kB / 0.6416 GB, free: 14.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00346/0.728, allocations: 2.674 MB / 0.6442 GB, free: 12.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.625e-05/0.728, allocations: 45.7 kB / 0.6443 GB, free: 12.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.7291, allocations: 1.299 MB / 0.6455 GB, free: 10.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/0.7294, allocations: 339.1 kB / 0.6458 GB, free: 10.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.885e-05/0.7295, allocations: 16 kB / 0.6459 GB, free: 10.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.7296, allocations: 345.9 kB / 0.6462 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.7309, allocations: 0.5215 MB / 0.6467 GB, free: 9.723 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.7322, allocations: 0.7591 MB / 0.6474 GB, free: 8.875 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.7347, allocations: 1.247 MB / 0.6487 GB, free: 7.566 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.7347, allocations: 4 kB / 0.6487 GB, free: 7.562 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003655/0.7383, allocations: 2.1 MB / 0.6507 GB, free: 5.383 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.7384, allocations: 11.94 kB / 0.6507 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/0.7385, allocations: 116 kB / 0.6508 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006489/0.7392, allocations: 276.8 kB / 0.6511 GB, free: 4.957 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008415/0.74, allocations: 223.7 kB / 0.6513 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1659/0.906, allocations: 13.26 MB / 0.6643 GB, free: 91.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.9076, allocations: 122.3 kB / 0.6644 GB, free: 91.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.9077, allocations: 60.78 kB / 0.6644 GB, free: 91.04 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.000877/0.9086, allocations: 432.9 kB / 0.6648 GB, free: 90.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.9089, allocations: 373.5 kB / 0.6652 GB, free: 90.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004416/0.9133, allocations: 2.333 MB / 0.6675 GB, free: 90.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.9134, allocations: 13.5 kB / 0.6675 GB, free: 90.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.9134, allocations: 3.688 kB / 0.6675 GB, free: 90.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.9134, allocations: 3.516 kB / 0.6675 GB, free: 90.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.9151, allocations: 1.546 MB / 0.669 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001284/0.9153, allocations: 115.3 kB / 0.6691 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006634/0.9159, allocations: 172.6 kB / 0.6693 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005544/0.9165, allocations: 270.8 kB / 0.6695 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.56e-05/0.9166, allocations: 39.66 kB / 0.6696 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00579/0.9224, allocations: 13.27 MB / 0.6825 GB, free: 77.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.9224, allocations: 0 / 0.6825 GB, free: 77.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004569/0.927, allocations: 2.725 MB / 0.6852 GB, free: 77.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007624/0.9278, allocations: 494.1 kB / 0.6857 GB, free: 77.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002873/0.9281, allocations: 25 kB / 0.6857 GB, free: 77.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009343/0.929, allocations: 124 kB / 0.6858 GB, free: 77.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.9293, allocations: 142.8 kB / 0.686 GB, free: 77.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.622e-05/0.9294, allocations: 54.78 kB / 0.686 GB, free: 77.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001955/0.9314, allocations: 1.744 MB / 0.6877 GB, free: 76.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9314, allocations: 0 / 0.6877 GB, free: 76.89 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001507/0.9329, allocations: 0.7133 MB / 0.6884 GB, free: 76.89 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.001065/0.934, allocations: 0.8926 MB / 0.6893 GB, free: 76.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.9372, allocations: 2.647 MB / 0.6919 GB, free: 75.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.9373, allocations: 1.062 kB / 0.6919 GB, free: 75.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002099/0.9394, allocations: 2.007 MB / 0.6938 GB, free: 74.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/0.9411, allocations: 487 kB / 0.6943 GB, free: 74.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005887/0.947, allocations: 5.336 MB / 0.6995 GB, free: 71.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.9481, allocations: 1.663 MB / 0.7011 GB, free: 71.23 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001289/0.9494, allocations: 342.2 kB / 0.7014 GB, free: 71.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002788/0.9497, allocations: 145.5 kB / 0.7016 GB, free: 71.19 MB / 426.7 MB Notification: Performance of SimCode: time 9.02e-07/0.9497, allocations: 4 kB / 0.7016 GB, free: 71.18 MB / 426.7 MB Notification: Performance of Templates: time 0.05174/1.001, allocations: 37.02 MB / 0.7377 GB, free: 59.39 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches