Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.215/1.215, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008367/0.0008367, allocations: 97.59 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002427/0.0002428, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2195, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3427, allocations: 104.3 MB / 0.4939 GB, free: 8.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.343, allocations: 71.97 kB / 0.494 GB, free: 8.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4182/0.7612, allocations: 141.1 MB / 0.6318 GB, free: 10.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7612, allocations: 0 / 0.6318 GB, free: 10.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.44e-05/0.7613, allocations: 44 kB / 0.6318 GB, free: 10.66 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005546/0.7669, allocations: 3.421 MB / 0.6352 GB, free: 7.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.7669, allocations: 12.03 kB / 0.6352 GB, free: 7.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003789/0.7673, allocations: 391.2 kB / 0.6356 GB, free: 6.773 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003641/0.771, allocations: 2.379 MB / 0.6379 GB, free: 4.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.771, allocations: 40.95 kB / 0.6379 GB, free: 4.281 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.7711, allocations: 59.91 kB / 0.638 GB, free: 4.223 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.7726, allocations: 0.8612 MB / 0.6388 GB, free: 3.332 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.7726, allocations: 0 / 0.6388 GB, free: 3.332 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.63e-05/0.7727, allocations: 20 kB / 0.6388 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.7727, allocations: 19.98 kB / 0.6388 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.7742, allocations: 0.8554 MB / 0.6397 GB, free: 2.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005223/0.7795, allocations: 3.168 MB / 0.6428 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.7806, allocations: 0.6267 MB / 0.6434 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2253/1.006, allocations: 35.9 MB / 0.6785 GB, free: 60.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007021/1.007, allocations: 389.9 kB / 0.6788 GB, free: 60.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/1.007, allocations: 0 / 0.6788 GB, free: 60.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002436/1.009, allocations: 1.469 MB / 0.6803 GB, free: 59.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/1.009, allocations: 270.1 kB / 0.6805 GB, free: 59.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002782/1.012, allocations: 2.538 MB / 0.683 GB, free: 59.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/1.012, allocations: 37.58 kB / 0.683 GB, free: 59.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/1.013, allocations: 1.499 MB / 0.6845 GB, free: 59.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/1.013, allocations: 162.8 kB / 0.6846 GB, free: 59.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.734e-05/1.013, allocations: 18.17 kB / 0.6847 GB, free: 59.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.516e-05/1.013, allocations: 337.8 kB / 0.685 GB, free: 58.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007598/1.014, allocations: 262.2 kB / 0.6852 GB, free: 58.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007603/1.015, allocations: 0.6728 MB / 0.6859 GB, free: 58.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006436/1.016, allocations: 348 kB / 0.6862 GB, free: 58.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/1.016, allocations: 8.875 kB / 0.6862 GB, free: 58.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002167/1.018, allocations: 1.268 MB / 0.6875 GB, free: 57.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/1.018, allocations: 9.906 kB / 0.6875 GB, free: 57.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/1.018, allocations: 81.92 kB / 0.6876 GB, free: 57.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.051e-05/1.018, allocations: 19.62 kB / 0.6876 GB, free: 57.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006848/1.019, allocations: 213.6 kB / 0.6878 GB, free: 57.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/1.019, allocations: 26.58 kB / 0.6878 GB, free: 57.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/1.02, allocations: 125.2 kB / 0.6879 GB, free: 57.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.229e-05/1.02, allocations: 64.09 kB / 0.688 GB, free: 57.97 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.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 (102): * Single equations (assignments): 98 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000856/1.021, allocations: 435 kB / 0.6884 GB, free: 57.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002942/1.021, allocations: 384 kB / 0.6888 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/1.024, allocations: 1.279 MB / 0.69 GB, free: 57.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/1.024, allocations: 10.88 kB / 0.69 GB, free: 57.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/1.024, allocations: 0 / 0.69 GB, free: 57.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/1.024, allocations: 6.078 kB / 0.69 GB, free: 57.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003183/1.027, allocations: 2.25 MB / 0.6922 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.078e-05/1.027, allocations: 75.92 kB / 0.6923 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004534/1.028, allocations: 102.8 kB / 0.6924 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/1.028, allocations: 3.969 kB / 0.6924 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/1.028, allocations: 31.67 kB / 0.6924 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/1.028, allocations: 6.625 kB / 0.6924 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.028, allocations: 0 / 0.6924 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/1.03, allocations: 1.411 MB / 0.6938 GB, free: 56.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007492/1.031, allocations: 0.5534 MB / 0.6944 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002608/1.031, allocations: 15.44 kB / 0.6944 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00067/1.032, allocations: 48.84 kB / 0.6944 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/1.032, allocations: 64.03 kB / 0.6945 GB, free: 56.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-05/1.032, allocations: 36.72 kB / 0.6945 GB, free: 56.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002196/1.034, allocations: 1.95 MB / 0.6964 GB, free: 56.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.034, allocations: 0 / 0.6964 GB, free: 56.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001526/1.036, allocations: 0.6427 MB / 0.6971 GB, free: 56.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/1.037, allocations: 0.8327 MB / 0.6979 GB, free: 56.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/1.038, allocations: 0.8563 MB / 0.6987 GB, free: 55.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.038, allocations: 3.969 kB / 0.6987 GB, free: 55.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006223/1.039, allocations: 459.2 kB / 0.6991 GB, free: 55.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/1.041, allocations: 0.5978 MB / 0.6997 GB, free: 55.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/1.046, allocations: 4.899 MB / 0.7045 GB, free: 53.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008674/1.046, allocations: 1.727 MB / 0.7062 GB, free: 52.78 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001185/1.048, allocations: 382 kB / 0.7066 GB, free: 52.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/1.048, allocations: 158.8 kB / 0.7067 GB, free: 52.74 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/1.048, allocations: 0 / 0.7067 GB, free: 52.74 MB / 426.7 MB Notification: Performance of Templates: time 0.04663/1.094, allocations: 31.22 MB / 0.7372 GB, free: 46.58 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches