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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009838/0.0009838, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 59.89 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2835, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01488/0.2984, allocations: 14.7 MB / 415.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02488/0.3233, allocations: 20.69 MB / 436.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002677/0.3261, allocations: 87.31 kB / 436.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003302/0.3294, allocations: 1.234 MB / 437.4 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007159/0.3366, allocations: 2.328 MB / 439.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004381/0.341, allocations: 1.439 MB / 441.2 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009418/0.3505, allocations: 6.493 MB / 447.7 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007055/0.3512, allocations: 457.1 kB / 448.1 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.3527, allocations: 1.108 MB / 449.2 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001075/0.3537, allocations: 1.106 MB / 450.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001497/0.3539, allocations: 72 kB / 450.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003793/0.3577, allocations: 1.479 MB / 451.9 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.3581, allocations: 337.5 kB / 452.2 MB, free: 5.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.3593, allocations: 1.366 MB / 453.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004526/0.3639, allocations: 3.763 MB / 457.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3639, allocations: 0 / 457.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3639, allocations: 0 / 457.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.3639, allocations: 0 / 457.4 MB, free: 15.98 MB / 382.1 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.004838/0.3688, allocations: 3.674 MB / 461 MB, free: 12.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3688, allocations: 15.83 kB / 461 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/0.3692, allocations: 395.2 kB / 461.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/0.3722, allocations: 2.422 MB / 463.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.3723, allocations: 37 kB / 463.9 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.3724, allocations: 55.91 kB / 463.9 MB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.3737, allocations: 0.7265 MB / 464.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.3737, allocations: 0 / 464.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.403e-05/0.3738, allocations: 20 kB / 464.7 MB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.3738, allocations: 19.98 kB / 464.7 MB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.3753, allocations: 0.8202 MB / 465.5 MB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004753/0.3801, allocations: 3.047 MB / 468.6 MB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3813, allocations: 0.579 MB / 469.2 MB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009181/0.3822, allocations: 0.6399 MB / 469.8 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02794/0.4102, allocations: 30.13 MB / 499.9 MB, free: 1.043 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007081/0.4109, allocations: 361.7 kB / 0.4885 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/0.4109, allocations: 0 / 0.4885 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002031/0.4129, allocations: 1.085 MB / 0.4896 GB, free: 15.58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.413, allocations: 63.41 kB / 0.4897 GB, free: 15.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003187/0.4162, allocations: 2.939 MB / 0.4925 GB, free: 12.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.4163, allocations: 33.7 kB / 0.4926 GB, free: 12.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.4175, allocations: 1.482 MB / 0.494 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.4177, allocations: 177.6 kB / 0.4942 GB, free: 10.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002953/0.418, allocations: 226.2 kB / 0.4944 GB, free: 10.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4181, allocations: 337.9 kB / 0.4947 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000528/0.4186, allocations: 237.9 kB / 0.495 GB, free: 10.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007405/0.4194, allocations: 0.602 MB / 0.4955 GB, free: 9.277 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.4207, allocations: 0.8896 MB / 0.4964 GB, free: 8.215 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.4207, allocations: 11.88 kB / 0.4964 GB, free: 8.203 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001871/0.4226, allocations: 1.226 MB / 0.4976 GB, free: 6.973 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.4226, allocations: 12 kB / 0.4976 GB, free: 6.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/0.4228, allocations: 83.98 kB / 0.4977 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/0.4228, allocations: 16 kB / 0.4977 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006545/0.4235, allocations: 208 kB / 0.4979 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.4235, allocations: 31.92 kB / 0.498 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008125/0.4243, allocations: 110.9 kB / 0.4981 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.893e-05/0.4244, allocations: 68 kB / 0.4981 GB, free: 6.453 MB / 430.1 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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005788/0.425, allocations: 434.2 kB / 0.4985 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003082/0.4253, allocations: 379.4 kB / 0.4989 GB, free: 5.645 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/0.4276, allocations: 1.19 MB / 0.5001 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.4277, allocations: 8 kB / 0.5001 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4277, allocations: 0 / 0.5001 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4277, allocations: 3.984 kB / 0.5001 GB, free: 4.426 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.4306, allocations: 2.1 MB / 0.5021 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.45e-05/0.4307, allocations: 68 kB / 0.5022 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/0.4311, allocations: 99.97 kB / 0.5023 GB, free: 2.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.4312, allocations: 0 / 0.5023 GB, free: 2.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.464e-05/0.4312, allocations: 31.94 kB / 0.5023 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4312, allocations: 4 kB / 0.5023 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4312, allocations: 0 / 0.5023 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.4333, allocations: 1.309 MB / 0.5036 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005941/0.4339, allocations: 476.3 kB / 0.504 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/0.4342, allocations: 15.98 kB / 0.5041 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006125/0.4348, allocations: 23.97 kB / 0.5041 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.4349, allocations: 63.89 kB / 0.5041 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.677e-05/0.435, allocations: 43.92 kB / 0.5042 GB, free: 84 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002164/0.4372, allocations: 1.9 MB / 0.506 GB, free: 14.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4372, allocations: 4 kB / 0.506 GB, free: 14.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001221/0.4384, allocations: 0.5855 MB / 0.5066 GB, free: 13.59 MB / 446.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/0.4394, allocations: 0.7648 MB / 0.5074 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.441, allocations: 0.8135 MB / 0.5082 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.441, allocations: 0 / 0.5082 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007293/0.4417, allocations: 443 kB / 0.5086 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.4438, allocations: 0.6039 MB / 0.5092 GB, free: 10.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005754/0.4496, allocations: 4.3 MB / 0.5134 GB, free: 6.578 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.4506, allocations: 1.661 MB / 0.515 GB, free: 4.891 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008597/0.4515, allocations: 361.1 kB / 0.5153 GB, free: 4.531 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.4517, allocations: 151.4 kB / 0.5155 GB, free: 4.383 MB / 446.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4517, allocations: 0 / 0.5155 GB, free: 4.383 MB / 446.1 MB Notification: Performance of Templates: time 0.2624/0.7142, allocations: 31.21 MB / 0.546 GB, free: 131.1 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches