Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009539/0.0009539, allocations: 203.5 kB / 18.07 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008196/0.0008196, allocations: 102.2 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002448/0.000245, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1997, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.109/0.3088, allocations: 105 MB / 0.5017 GB, free: 2.484 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.309, allocations: 72.53 kB / 0.5017 GB, free: 2.414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4111/0.7201, allocations: 139.3 MB / 0.6378 GB, free: 3.645 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.7202, allocations: 0 / 0.6378 GB, free: 3.645 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002069/0.7204, allocations: 44 kB / 0.6378 GB, free: 3.602 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.00657/0.727, allocations: 3.371 MB / 0.6411 GB, free: 164 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.727, allocations: 12.02 kB / 0.6411 GB, free: 152 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007996/0.7278, allocations: 404.7 kB / 0.6415 GB, free: 15.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004788/0.7326, allocations: 2.551 MB / 0.644 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.384e-05/0.7327, allocations: 44.97 kB / 0.644 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.733, allocations: 51.91 kB / 0.6441 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.7347, allocations: 0.8651 MB / 0.6449 GB, free: 12.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.7347, allocations: 0 / 0.6449 GB, free: 12.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-05/0.7348, allocations: 20 kB / 0.645 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.7349, allocations: 23.92 kB / 0.645 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.7365, allocations: 0.8632 MB / 0.6458 GB, free: 11.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00684/0.7434, allocations: 3.156 MB / 0.6489 GB, free: 7.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.7447, allocations: 0.6142 MB / 0.6495 GB, free: 7.359 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009776/0.7457, allocations: 0.6633 MB / 0.6502 GB, free: 6.688 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2379/0.9837, allocations: 36.32 MB / 0.6856 GB, free: 76.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006844/0.9844, allocations: 390.6 kB / 0.686 GB, free: 76.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.805e-06/0.9844, allocations: 0 / 0.686 GB, free: 76.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002058/0.9865, allocations: 1.156 MB / 0.6871 GB, free: 76.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/0.9866, allocations: 279 kB / 0.6874 GB, free: 75.81 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003599/0.9902, allocations: 2.992 MB / 0.6903 GB, free: 75.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.916e-05/0.9903, allocations: 35.73 kB / 0.6903 GB, free: 75.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009322/0.9912, allocations: 1.487 MB / 0.6918 GB, free: 75.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.9914, allocations: 172.5 kB / 0.692 GB, free: 75.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.9914, allocations: 21.47 kB / 0.692 GB, free: 75.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.1e-05/0.9915, allocations: 336.9 kB / 0.6923 GB, free: 74.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000666/0.9922, allocations: 261 kB / 0.6926 GB, free: 74.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007122/0.9929, allocations: 0.6767 MB / 0.6932 GB, free: 74.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.9942, allocations: 0.9335 MB / 0.6941 GB, free: 73.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.9942, allocations: 6.438 kB / 0.6941 GB, free: 73.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001949/0.9961, allocations: 1.267 MB / 0.6954 GB, free: 73.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.9962, allocations: 10.53 kB / 0.6954 GB, free: 73.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.132e-05/0.9963, allocations: 81.45 kB / 0.6955 GB, free: 73.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.96e-05/0.9963, allocations: 21.81 kB / 0.6955 GB, free: 73.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/0.997, allocations: 217.2 kB / 0.6957 GB, free: 73.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.9971, allocations: 20.47 kB / 0.6957 GB, free: 73.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.9983, allocations: 126.1 kB / 0.6958 GB, free: 73.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.9984, allocations: 68.19 kB / 0.6959 GB, free: 73.67 MB / 442.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.0009788/0.9994, allocations: 444.3 kB / 0.6963 GB, free: 73.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.9998, allocations: 381.3 kB / 0.6967 GB, free: 73.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002751/1.003, allocations: 1.24 MB / 0.6979 GB, free: 73.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/1.003, allocations: 10.88 kB / 0.6979 GB, free: 73.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.003, allocations: 0 / 0.6979 GB, free: 73.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/1.003, allocations: 3.375 kB / 0.6979 GB, free: 73.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003262/1.006, allocations: 2.232 MB / 0.7001 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-05/1.006, allocations: 74.42 kB / 0.7002 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004489/1.006, allocations: 104.5 kB / 0.7003 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/1.006, allocations: 2.969 kB / 0.7003 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.518e-05/1.006, allocations: 38.67 kB / 0.7003 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/1.006, allocations: 3.094 kB / 0.7003 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.006, allocations: 3.781 kB / 0.7003 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/1.008, allocations: 1.353 MB / 0.7016 GB, free: 72.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008427/1.009, allocations: 0.548 MB / 0.7022 GB, free: 72.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/1.01, allocations: 12.25 kB / 0.7022 GB, free: 72.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006584/1.01, allocations: 47.5 kB / 0.7022 GB, free: 72.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/1.01, allocations: 61.36 kB / 0.7023 GB, free: 72.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.685e-05/1.01, allocations: 41.19 kB / 0.7023 GB, free: 72.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002247/1.013, allocations: 1.945 MB / 0.7042 GB, free: 71.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.013, allocations: 3.172 kB / 0.7042 GB, free: 71.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001518/1.014, allocations: 0.6398 MB / 0.7048 GB, free: 71.96 MB / 442.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.001163/1.015, allocations: 0.8592 MB / 0.7057 GB, free: 71.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001524/1.017, allocations: 0.8466 MB / 0.7065 GB, free: 71.74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.017, allocations: 0 / 0.7065 GB, free: 71.74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006596/1.018, allocations: 469.1 kB / 0.707 GB, free: 71.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/1.02, allocations: 0.5981 MB / 0.7075 GB, free: 71.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005681/1.026, allocations: 4.971 MB / 0.7124 GB, free: 69.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008357/1.027, allocations: 1.665 MB / 0.714 GB, free: 68.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/1.027, allocations: 168 kB / 0.7142 GB, free: 68.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/1.027, allocations: 3.5 kB / 0.7142 GB, free: 68.52 MB / 442.7 MB Notification: Performance of Templates: time 0.05216/1.079, allocations: 38.44 MB / 0.7517 GB, free: 58.1 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches