Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009169/0.0009171, allocations: 176.4 kB / 17.4 MB, free: 4.414 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.318/1.318, allocations: 223.3 MB / 241.4 MB, free: 9.969 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.001066/0.001066, allocations: 96.22 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 11.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2621, allocations: 50.39 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.3842, allocations: 104.4 MB / 0.4952 GB, free: 7.891 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.3845, allocations: 71.97 kB / 0.4953 GB, free: 7.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4213/0.8058, allocations: 141.2 MB / 0.6332 GB, free: 10.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.8058, allocations: 0 / 0.6332 GB, free: 10.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001948/0.8061, allocations: 44 kB / 0.6332 GB, free: 10.29 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.006492/0.8126, allocations: 3.508 MB / 0.6367 GB, free: 6.711 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.8126, allocations: 11.97 kB / 0.6367 GB, free: 6.699 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006648/0.8133, allocations: 415.7 kB / 0.6371 GB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004402/0.8177, allocations: 2.627 MB / 0.6396 GB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.8178, allocations: 44.98 kB / 0.6397 GB, free: 3.543 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.818, allocations: 55.98 kB / 0.6397 GB, free: 3.488 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.8195, allocations: 0.8534 MB / 0.6406 GB, free: 2.602 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.8195, allocations: 0 / 0.6406 GB, free: 2.602 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.426e-05/0.8196, allocations: 28 kB / 0.6406 GB, free: 2.574 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.8196, allocations: 19.98 kB / 0.6406 GB, free: 2.555 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.8212, allocations: 0.8592 MB / 0.6414 GB, free: 1.695 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006324/0.8276, allocations: 3.249 MB / 0.6446 GB, free: 14.37 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.8288, allocations: 0.6181 MB / 0.6452 GB, free: 13.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009627/0.8298, allocations: 0.6726 MB / 0.6459 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2297/1.06, allocations: 35.7 MB / 0.6807 GB, free: 57.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008139/1.06, allocations: 394.8 kB / 0.6811 GB, free: 57.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.206e-06/1.06, allocations: 0.5312 kB / 0.6811 GB, free: 57.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002321/1.063, allocations: 1.178 MB / 0.6823 GB, free: 57.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/1.063, allocations: 263.2 kB / 0.6825 GB, free: 57.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005044/1.068, allocations: 3.173 MB / 0.6856 GB, free: 56.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.525e-05/1.068, allocations: 37.08 kB / 0.6857 GB, free: 56.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/1.069, allocations: 1.575 MB / 0.6872 GB, free: 56.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/1.069, allocations: 172.6 kB / 0.6874 GB, free: 56.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.516e-05/1.069, allocations: 20.69 kB / 0.6874 GB, free: 56.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.5e-05/1.069, allocations: 337.8 kB / 0.6877 GB, free: 56.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005286/1.07, allocations: 262.3 kB / 0.6879 GB, free: 56.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006734/1.071, allocations: 0.6683 MB / 0.6886 GB, free: 55.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/1.072, allocations: 0.9394 MB / 0.6895 GB, free: 55.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/1.072, allocations: 3.719 kB / 0.6895 GB, free: 55.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00207/1.074, allocations: 1.281 MB / 0.6908 GB, free: 55.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/1.074, allocations: 11.34 kB / 0.6908 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-05/1.074, allocations: 82.58 kB / 0.6909 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/1.074, allocations: 23.31 kB / 0.6909 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006756/1.075, allocations: 217.3 kB / 0.6911 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.31e-05/1.075, allocations: 24.81 kB / 0.6911 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/1.076, allocations: 121.1 kB / 0.6912 GB, free: 55.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/1.076, allocations: 63.53 kB / 0.6913 GB, free: 55.1 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.001036/1.077, allocations: 461.8 kB / 0.6917 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004973/1.078, allocations: 406.4 kB / 0.6921 GB, free: 54.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003102/1.081, allocations: 1.25 MB / 0.6933 GB, free: 54.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/1.081, allocations: 6.219 kB / 0.6933 GB, free: 54.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.081, allocations: 0 / 0.6933 GB, free: 54.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/1.081, allocations: 9.484 kB / 0.6934 GB, free: 54.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/1.085, allocations: 2.324 MB / 0.6956 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.378e-05/1.085, allocations: 72.44 kB / 0.6957 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/1.086, allocations: 100.2 kB / 0.6958 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/1.086, allocations: 2.75 kB / 0.6958 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.645e-05/1.086, allocations: 40.62 kB / 0.6958 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/1.086, allocations: 3.812 kB / 0.6958 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/1.086, allocations: 3.656 kB / 0.6958 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/1.088, allocations: 1.372 MB / 0.6972 GB, free: 53.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009516/1.089, allocations: 0.5058 MB / 0.6977 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005363/1.089, allocations: 10.25 kB / 0.6977 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009009/1.09, allocations: 46.38 kB / 0.6977 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/1.09, allocations: 65.52 kB / 0.6978 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.719e-05/1.09, allocations: 35.91 kB / 0.6978 GB, free: 53.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003186/1.094, allocations: 2.057 MB / 0.6998 GB, free: 53.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.094, allocations: 0 / 0.6998 GB, free: 53.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001788/1.095, allocations: 0.6634 MB / 0.7005 GB, free: 53.41 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.001265/1.097, allocations: 0.8882 MB / 0.7013 GB, free: 53.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00145/1.098, allocations: 0.8468 MB / 0.7022 GB, free: 53.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.098, allocations: 3.375 kB / 0.7022 GB, free: 53.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006365/1.099, allocations: 461.7 kB / 0.7026 GB, free: 53.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/1.102, allocations: 0.6256 MB / 0.7032 GB, free: 53.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006953/1.109, allocations: 5.114 MB / 0.7082 GB, free: 50.63 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/1.11, allocations: 1.71 MB / 0.7099 GB, free: 49.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001552/1.112, allocations: 382.2 kB / 0.7103 GB, free: 49.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003316/1.112, allocations: 167.9 kB / 0.7104 GB, free: 49.87 MB / 426.7 MB Notification: Performance of SimCode: time 9.71e-07/1.112, allocations: 0 / 0.7104 GB, free: 49.87 MB / 426.7 MB Notification: Performance of Templates: time 0.05431/1.166, allocations: 34.67 MB / 0.7443 GB, free: 39.54 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches