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.001515/0.001515, allocations: 185.4 kB / 16.4 MB, free: 5.75 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.895/1.895, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001133/0.001132, allocations: 92.36 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003674, allocations: 8 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3219, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1591/0.481, allocations: 102.3 MB / 476.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.4814, allocations: 79.95 kB / 476.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6528/1.134, allocations: 125.6 MB / 0.5884 GB, free: 24.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.134, allocations: 0 / 0.5884 GB, free: 24.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001766/1.134, allocations: 48 kB / 0.5884 GB, free: 24.82 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008401/1.143, allocations: 3.427 MB / 0.5918 GB, free: 21.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/1.143, allocations: 8.031 kB / 0.5918 GB, free: 21.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008406/1.144, allocations: 395.2 kB / 0.5922 GB, free: 20.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005955/1.15, allocations: 2.395 MB / 0.5945 GB, free: 18.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/1.15, allocations: 44.89 kB / 0.5945 GB, free: 18.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002272/1.15, allocations: 59.89 kB / 0.5946 GB, free: 18.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/1.152, allocations: 0.8652 MB / 0.5954 GB, free: 17.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/1.152, allocations: 3.938 kB / 0.5955 GB, free: 17.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/1.152, allocations: 20 kB / 0.5955 GB, free: 17.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/1.152, allocations: 19.98 kB / 0.5955 GB, free: 17.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/1.155, allocations: 0.8554 MB / 0.5963 GB, free: 16.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007978/1.163, allocations: 3.194 MB / 0.5994 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/1.165, allocations: 0.622 MB / 0.6001 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05065/1.216, allocations: 36.02 MB / 0.6352 GB, free: 3.496 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/1.217, allocations: 393.4 kB / 0.6356 GB, free: 3.102 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/1.217, allocations: 0 / 0.6356 GB, free: 3.102 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004258/1.221, allocations: 1.47 MB / 0.637 GB, free: 1.547 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001588/1.221, allocations: 273 kB / 0.6373 GB, free: 1.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005704/1.227, allocations: 2.556 MB / 0.6398 GB, free: 14.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001732/1.227, allocations: 37.7 kB / 0.6398 GB, free: 14.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/1.229, allocations: 1.24 MB / 0.641 GB, free: 13.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000252/1.229, allocations: 173.6 kB / 0.6412 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-05/1.229, allocations: 16 kB / 0.6412 GB, free: 13.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/1.229, allocations: 350.8 kB / 0.6416 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/1.231, allocations: 257.9 kB / 0.6418 GB, free: 12.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/1.232, allocations: 0.6673 MB / 0.6425 GB, free: 11.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/1.233, allocations: 348.5 kB / 0.6428 GB, free: 11.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/1.233, allocations: 4 kB / 0.6428 GB, free: 11.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003089/1.236, allocations: 0.948 MB / 0.6437 GB, free: 10.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/1.236, allocations: 12 kB / 0.6437 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001793/1.237, allocations: 79.98 kB / 0.6438 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.416e-05/1.237, allocations: 20 kB / 0.6438 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/1.238, allocations: 216.2 kB / 0.644 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.658e-05/1.238, allocations: 27.86 kB / 0.6441 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/1.24, allocations: 127 kB / 0.6442 GB, free: 9.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/1.24, allocations: 60 kB / 0.6442 GB, free: 9.883 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.00144/1.242, allocations: 440 kB / 0.6446 GB, free: 9.445 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007467/1.243, allocations: 387.3 kB / 0.645 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005643/1.248, allocations: 1.291 MB / 0.6463 GB, free: 7.762 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/1.248, allocations: 7.984 kB / 0.6463 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/1.248, allocations: 0 / 0.6463 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/1.248, allocations: 0 / 0.6463 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006739/1.255, allocations: 2.253 MB / 0.6485 GB, free: 5.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001642/1.255, allocations: 71.98 kB / 0.6486 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009397/1.256, allocations: 103.9 kB / 0.6487 GB, free: 5.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/1.256, allocations: 4 kB / 0.6487 GB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/1.256, allocations: 36.05 kB / 0.6487 GB, free: 5.215 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/1.256, allocations: 3.953 kB / 0.6487 GB, free: 5.211 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.256, allocations: 4 kB / 0.6487 GB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004325/1.261, allocations: 1.421 MB / 0.6501 GB, free: 3.742 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/1.262, allocations: 0.5528 MB / 0.6506 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008019/1.263, allocations: 16.06 kB / 0.6506 GB, free: 3.137 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/1.265, allocations: 43.95 kB / 0.6507 GB, free: 3.094 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/1.266, allocations: 63.94 kB / 0.6507 GB, free: 3.031 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/1.266, allocations: 35.98 kB / 0.6508 GB, free: 2.996 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005027/1.271, allocations: 1.959 MB / 0.6527 GB, free: 1.039 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.271, allocations: 4 kB / 0.6527 GB, free: 1.035 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002719/1.273, allocations: 0.6439 MB / 0.6533 GB, free: 400 kB / 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.2928/1.566, allocations: 0.8366 MB / 0.6541 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002665/1.569, allocations: 0.8552 MB / 0.655 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/1.569, allocations: 0 / 0.655 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/1.57, allocations: 467.3 kB / 0.6554 GB, free: 99.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/1.573, allocations: 0.5005 MB / 0.6559 GB, free: 99.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/1.582, allocations: 5.002 MB / 0.6608 GB, free: 97.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/1.583, allocations: 1.73 MB / 0.6625 GB, free: 96.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005187/1.583, allocations: 173.8 kB / 0.6627 GB, free: 96.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.673e-06/1.583, allocations: 3.094 kB / 0.6627 GB, free: 96.89 MB / 426.7 MB Notification: Performance of Templates: time 0.07853/1.662, allocations: 37 MB / 0.6988 GB, free: 92.34 MB / 426.7 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