Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 199.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.5 MB / 245.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009235/0.0009236, allocations: 106.8 kB / 297.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002293/0.0002293, allocations: 4 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2065, allocations: 51.29 MB / 409.4 MB, free: 27.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1111/0.3177, allocations: 105.1 MB / 0.5024 GB, free: 2.418 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.3179, allocations: 75.97 kB / 0.5025 GB, free: 2.344 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4191/0.737, allocations: 141.5 MB / 0.6406 GB, free: 1.461 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7371, allocations: 4 kB / 0.6406 GB, free: 1.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000265/0.7373, allocations: 48 kB / 0.6407 GB, free: 1.41 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.009408/0.7468, allocations: 3.512 MB / 0.6441 GB, free: 13.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.7468, allocations: 12.03 kB / 0.6441 GB, free: 13.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/0.7479, allocations: 415.2 kB / 0.6445 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005861/0.7538, allocations: 2.631 MB / 0.6471 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.38e-05/0.7539, allocations: 37 kB / 0.6471 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.7541, allocations: 56 kB / 0.6472 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.7558, allocations: 0.8612 MB / 0.648 GB, free: 9.715 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.7558, allocations: 0 / 0.648 GB, free: 9.715 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-05/0.7559, allocations: 23.98 kB / 0.648 GB, free: 9.691 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.7559, allocations: 20 kB / 0.648 GB, free: 9.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.7578, allocations: 0.8592 MB / 0.6489 GB, free: 8.812 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007481/0.7653, allocations: 3.249 MB / 0.6521 GB, free: 5.484 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.7667, allocations: 0.6142 MB / 0.6527 GB, free: 4.859 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.7678, allocations: 0.675 MB / 0.6533 GB, free: 4.176 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.257/1.025, allocations: 36.34 MB / 0.6888 GB, free: 72.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006678/1.026, allocations: 391.4 kB / 0.6892 GB, free: 72.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/1.026, allocations: 1.875 kB / 0.6892 GB, free: 72.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001886/1.027, allocations: 1.168 MB / 0.6903 GB, free: 72.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/1.027, allocations: 276.7 kB / 0.6906 GB, free: 72.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/1.031, allocations: 3.167 MB / 0.6937 GB, free: 71.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/1.031, allocations: 40.64 kB / 0.6937 GB, free: 71.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/1.032, allocations: 1.582 MB / 0.6953 GB, free: 71.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/1.032, allocations: 168.7 kB / 0.6954 GB, free: 71.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/1.032, allocations: 16.66 kB / 0.6954 GB, free: 71.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.851e-05/1.032, allocations: 340.2 kB / 0.6958 GB, free: 71.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/1.033, allocations: 255.6 kB / 0.696 GB, free: 71.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/1.034, allocations: 0.6691 MB / 0.6967 GB, free: 70.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/1.035, allocations: 0.946 MB / 0.6976 GB, free: 70.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/1.035, allocations: 3.375 kB / 0.6976 GB, free: 70.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001899/1.037, allocations: 1.283 MB / 0.6988 GB, free: 70.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/1.037, allocations: 11.88 kB / 0.6988 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.245e-05/1.037, allocations: 78.84 kB / 0.6989 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/1.037, allocations: 22.44 kB / 0.6989 GB, free: 70.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/1.038, allocations: 215.4 kB / 0.6991 GB, free: 70.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/1.038, allocations: 25.28 kB / 0.6992 GB, free: 70.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/1.039, allocations: 128 kB / 0.6993 GB, free: 70.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.738e-05/1.039, allocations: 62.78 kB / 0.6994 GB, free: 70.1 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.0008127/1.04, allocations: 455 kB / 0.6998 GB, free: 69.99 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002659/1.04, allocations: 406 kB / 0.7002 GB, free: 69.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/1.043, allocations: 1.251 MB / 0.7014 GB, free: 69.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/1.043, allocations: 7.906 kB / 0.7014 GB, free: 69.69 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/1.043, allocations: 0 / 0.7014 GB, free: 69.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/1.043, allocations: 3.938 kB / 0.7014 GB, free: 69.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0029/1.045, allocations: 2.313 MB / 0.7037 GB, free: 69.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.877e-05/1.046, allocations: 72.88 kB / 0.7037 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000427/1.046, allocations: 109.6 kB / 0.7038 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/1.046, allocations: 6.812 kB / 0.7038 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/1.046, allocations: 29.41 kB / 0.7039 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/1.046, allocations: 3.938 kB / 0.7039 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.046, allocations: 2.953 kB / 0.7039 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/1.048, allocations: 1.379 MB / 0.7052 GB, free: 68.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006295/1.049, allocations: 0.5058 MB / 0.7057 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002691/1.049, allocations: 14.95 kB / 0.7057 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006794/1.05, allocations: 47.81 kB / 0.7058 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/1.05, allocations: 56.22 kB / 0.7058 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/1.05, allocations: 38.38 kB / 0.7059 GB, free: 68.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002038/1.052, allocations: 2.058 MB / 0.7079 GB, free: 68.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.052, allocations: 0 / 0.7079 GB, free: 68.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001264/1.053, allocations: 0.6671 MB / 0.7085 GB, free: 68.43 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.000967/1.054, allocations: 0.8871 MB / 0.7094 GB, free: 68.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001322/1.055, allocations: 0.8515 MB / 0.7102 GB, free: 68.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.055, allocations: 3.875 kB / 0.7102 GB, free: 68.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006144/1.056, allocations: 462.8 kB / 0.7107 GB, free: 68.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/1.058, allocations: 0.6207 MB / 0.7113 GB, free: 68.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005182/1.064, allocations: 5.127 MB / 0.7163 GB, free: 65.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008297/1.065, allocations: 1.708 MB / 0.718 GB, free: 64.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001225/1.066, allocations: 386.6 kB / 0.7183 GB, free: 64.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/1.066, allocations: 158.8 kB / 0.7185 GB, free: 64.89 MB / 442.7 MB Notification: Performance of SimCode: time 7.51e-07/1.066, allocations: 0 / 0.7185 GB, free: 64.89 MB / 442.7 MB Notification: Performance of Templates: time 0.05108/1.117, allocations: 34.7 MB / 0.7524 GB, free: 57.48 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches