Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002003/0.002002, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001057/0.001056, allocations: 92.28 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.746e-05/1.742e-05, allocations: 4 kB / 314.8 MB, free: 9.18 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3295, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1717/0.5012, allocations: 101.5 MB / 463.9 MB, free: 0.7461 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.5015, allocations: 72.47 kB / 463.9 MB, free: 0.6758 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6678/1.169, allocations: 120.3 MB / 0.5705 GB, free: 70.76 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.485e-06/1.169, allocations: 0 / 0.5705 GB, free: 70.76 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002202/1.17, allocations: 48 kB / 0.5706 GB, free: 70.71 MB / 395.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.006745/1.176, allocations: 2.712 MB / 0.5732 GB, free: 67.95 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/1.176, allocations: 9.344 kB / 0.5732 GB, free: 67.94 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008305/1.177, allocations: 399.2 kB / 0.5736 GB, free: 67.55 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006214/1.184, allocations: 2.371 MB / 0.5759 GB, free: 65.2 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/1.184, allocations: 23.94 kB / 0.576 GB, free: 65.17 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000275/1.184, allocations: 39.89 kB / 0.576 GB, free: 65.13 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001588/1.186, allocations: 0.6821 MB / 0.5767 GB, free: 64.45 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/1.187, allocations: 0.7206 MB / 0.5774 GB, free: 63.69 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/1.187, allocations: 0 / 0.5774 GB, free: 63.69 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/1.187, allocations: 7.984 kB / 0.5774 GB, free: 63.68 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.12e-05/1.187, allocations: 16 kB / 0.5774 GB, free: 63.67 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008318/1.196, allocations: 3.084 MB / 0.5804 GB, free: 60.55 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009309/1.197, allocations: 475.8 kB / 0.5808 GB, free: 60.08 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009058/1.198, allocations: 0.5693 MB / 0.5814 GB, free: 59.5 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04635/1.244, allocations: 36.16 MB / 0.6167 GB, free: 18.21 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006194/1.245, allocations: 297.8 kB / 0.617 GB, free: 17.91 MB / 395.1 MB Notification: Performance of pre-optimization done (n=49): time 4.208e-06/1.245, allocations: 0 / 0.617 GB, free: 17.91 MB / 395.1 MB Notification: Performance of matching and sorting (n=49): time 0.001887/1.247, allocations: 0.7818 MB / 0.6178 GB, free: 17.12 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.659e-05/1.247, allocations: 281 kB / 0.618 GB, free: 16.78 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004493/1.251, allocations: 2.322 MB / 0.6203 GB, free: 14.46 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/1.251, allocations: 29.7 kB / 0.6203 GB, free: 14.42 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/1.253, allocations: 1.236 MB / 0.6215 GB, free: 13.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002865/1.253, allocations: 161.8 kB / 0.6217 GB, free: 13.02 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/1.253, allocations: 0 / 0.6217 GB, free: 13.02 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.473e-05/1.253, allocations: 342.8 kB / 0.622 GB, free: 12.68 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004252/1.254, allocations: 170.6 kB / 0.6222 GB, free: 12.51 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/1.254, allocations: 0.5746 MB / 0.6227 GB, free: 11.73 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006515/1.255, allocations: 268.5 kB / 0.623 GB, free: 11.47 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/1.255, allocations: 4 kB / 0.623 GB, free: 11.46 MB / 395.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001736/1.257, allocations: 0.7253 MB / 0.6237 GB, free: 10.73 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/1.257, allocations: 12 kB / 0.6237 GB, free: 10.72 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/1.257, allocations: 83.98 kB / 0.6238 GB, free: 10.64 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.142e-05/1.257, allocations: 23.94 kB / 0.6238 GB, free: 10.62 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/1.259, allocations: 212.2 kB / 0.624 GB, free: 10.41 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/1.259, allocations: 19.94 kB / 0.624 GB, free: 10.39 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/1.261, allocations: 115 kB / 0.6242 GB, free: 10.28 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/1.261, allocations: 63.95 kB / 0.6242 GB, free: 10.21 MB / 395.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 ($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 () * 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.000242/1.261, allocations: 148.6 kB / 0.6244 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006315/1.262, allocations: 383.4 kB / 0.6247 GB, free: 9.684 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004293/1.266, allocations: 1.115 MB / 0.6258 GB, free: 8.562 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/1.266, allocations: 7.938 kB / 0.6258 GB, free: 8.555 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/1.266, allocations: 4 kB / 0.6258 GB, free: 8.551 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/1.266, allocations: 3.984 kB / 0.6258 GB, free: 8.547 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004655/1.271, allocations: 2.006 MB / 0.6278 GB, free: 6.484 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001427/1.271, allocations: 71.98 kB / 0.6279 GB, free: 6.414 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009436/1.272, allocations: 99.98 kB / 0.6279 GB, free: 6.316 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/1.272, allocations: 0 / 0.6279 GB, free: 6.316 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-05/1.272, allocations: 31.98 kB / 0.628 GB, free: 6.285 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/1.272, allocations: 11.88 kB / 0.628 GB, free: 6.273 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.272, allocations: 0 / 0.628 GB, free: 6.273 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/1.274, allocations: 1.186 MB / 0.6291 GB, free: 5.043 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.276, allocations: 0.5529 MB / 0.6297 GB, free: 4.453 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006721/1.277, allocations: 11.95 kB / 0.6297 GB, free: 4.441 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/1.278, allocations: 40.02 kB / 0.6297 GB, free: 4.402 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/1.278, allocations: 55.94 kB / 0.6298 GB, free: 4.348 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/1.279, allocations: 43.98 kB / 0.6298 GB, free: 4.305 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003627/1.282, allocations: 1.721 MB / 0.6315 GB, free: 2.586 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.392e-06/1.282, allocations: 0 / 0.6315 GB, free: 2.586 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002395/1.285, allocations: 0.6049 MB / 0.6321 GB, free: 1.98 MB / 395.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) * 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.001755/1.286, allocations: 0.9421 MB / 0.633 GB, free: 1.039 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/1.288, allocations: 0.6727 MB / 0.6337 GB, free: 348 kB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.954e-06/1.288, allocations: 8.297 kB / 0.6337 GB, free: 340 kB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006987/1.289, allocations: 387.2 kB / 0.6341 GB, free: 15.93 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/1.292, allocations: 498.5 kB / 0.6345 GB, free: 15.44 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009023/1.301, allocations: 3.19 MB / 0.6376 GB, free: 12.2 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001977/1.303, allocations: 1.728 MB / 0.6393 GB, free: 10.44 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/1.304, allocations: 163.4 kB / 0.6395 GB, free: 10.28 MB / 411.1 MB Notification: Performance of SimCode: time 1.092e-06/1.304, allocations: 8 kB / 0.6395 GB, free: 10.27 MB / 411.1 MB Notification: Performance of Templates: time 0.3745/1.678, allocations: 36.86 MB / 0.6755 GB, free: 88.29 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches