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.001279/0.001279, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009962/0.0009961, allocations: 89.89 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.7e-05, allocations: 4 kB / 343.7 MB, free: 8.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1075, allocations: 51.47 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3924/0.4999, allocations: 104.4 MB / 499.5 MB, free: 4.961 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.5002, allocations: 72.7 kB / 499.6 MB, free: 4.926 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5692/1.069, allocations: 138.3 MB / 0.6229 GB, free: 79.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.069, allocations: 0 / 0.6229 GB, free: 79.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.977e-05/1.07, allocations: 52.3 kB / 0.623 GB, free: 79.45 MB / 442.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.004347/1.074, allocations: 2.78 MB / 0.6257 GB, free: 77.92 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.074, allocations: 8.906 kB / 0.6257 GB, free: 77.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005614/1.075, allocations: 422.6 kB / 0.6261 GB, free: 77.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003651/1.078, allocations: 2.405 MB / 0.6285 GB, free: 77.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/1.078, allocations: 20.19 kB / 0.6285 GB, free: 77.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.078, allocations: 37.25 kB / 0.6285 GB, free: 77.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001084/1.079, allocations: 0.6866 MB / 0.6292 GB, free: 77.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/1.08, allocations: 0.7217 MB / 0.6299 GB, free: 76.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/1.08, allocations: 5.25 kB / 0.6299 GB, free: 76.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.698e-05/1.081, allocations: 1.25 kB / 0.6299 GB, free: 76.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/1.081, allocations: 19.31 kB / 0.6299 GB, free: 76.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/1.086, allocations: 3.157 MB / 0.633 GB, free: 76.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/1.087, allocations: 468.8 kB / 0.6335 GB, free: 76.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006419/1.088, allocations: 0.5727 MB / 0.634 GB, free: 75.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02796/1.116, allocations: 36.75 MB / 0.6699 GB, free: 46.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/1.116, allocations: 305.2 kB / 0.6702 GB, free: 46.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.825e-06/1.116, allocations: 0 / 0.6702 GB, free: 46.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001505/1.117, allocations: 0.803 MB / 0.671 GB, free: 45.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/1.118, allocations: 269.7 kB / 0.6712 GB, free: 45.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002815/1.12, allocations: 2.446 MB / 0.6736 GB, free: 44.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/1.12, allocations: 25.7 kB / 0.6736 GB, free: 44.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009865/1.121, allocations: 1.582 MB / 0.6752 GB, free: 43.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/1.122, allocations: 160.1 kB / 0.6753 GB, free: 43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/1.122, allocations: 0 / 0.6753 GB, free: 43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.152e-05/1.122, allocations: 336.4 kB / 0.6757 GB, free: 42.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/1.122, allocations: 180.4 kB / 0.6758 GB, free: 42.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/1.122, allocations: 0.5714 MB / 0.6764 GB, free: 41.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003849/1.123, allocations: 262 kB / 0.6766 GB, free: 41.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/1.123, allocations: 11.19 kB / 0.6767 GB, free: 41.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00138/1.124, allocations: 1.046 MB / 0.6777 GB, free: 41.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/1.124, allocations: 14.53 kB / 0.6777 GB, free: 41.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/1.124, allocations: 85.02 kB / 0.6778 GB, free: 41.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/1.124, allocations: 18.91 kB / 0.6778 GB, free: 41.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006756/1.125, allocations: 214.1 kB / 0.678 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/1.125, allocations: 28.91 kB / 0.678 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/1.126, allocations: 104.3 kB / 0.6781 GB, free: 41.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.894e-05/1.127, allocations: 69.53 kB / 0.6782 GB, free: 41.36 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 () * 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.000179/1.127, allocations: 144.3 kB / 0.6783 GB, free: 41.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003973/1.127, allocations: 402.9 kB / 0.6787 GB, free: 41.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002891/1.13, allocations: 1.122 MB / 0.6798 GB, free: 40.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/1.13, allocations: 7.938 kB / 0.6798 GB, free: 40.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/1.13, allocations: 0 / 0.6798 GB, free: 40.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/1.13, allocations: 3.703 kB / 0.6798 GB, free: 40.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/1.134, allocations: 2.078 MB / 0.6818 GB, free: 39.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.503e-05/1.134, allocations: 74.75 kB / 0.6819 GB, free: 39.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/1.135, allocations: 99 kB / 0.682 GB, free: 39.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/1.135, allocations: 7.906 kB / 0.682 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/1.135, allocations: 25.8 kB / 0.682 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/1.135, allocations: 3.562 kB / 0.682 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.135, allocations: 3.953 kB / 0.6821 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/1.136, allocations: 1.206 MB / 0.6832 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009653/1.137, allocations: 0.5171 MB / 0.6837 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003424/1.137, allocations: 5.75 kB / 0.6837 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000731/1.138, allocations: 39.48 kB / 0.6838 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/1.138, allocations: 63.75 kB / 0.6838 GB, free: 38.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.186e-05/1.138, allocations: 34.84 kB / 0.6839 GB, free: 38.63 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002097/1.14, allocations: 1.814 MB / 0.6856 GB, free: 37.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.14, allocations: 0 / 0.6856 GB, free: 37.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001464/1.142, allocations: 0.6143 MB / 0.6862 GB, free: 37.8 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) * 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.001215/1.143, allocations: 0.9865 MB / 0.6872 GB, free: 37.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008696/1.144, allocations: 0.6597 MB / 0.6879 GB, free: 37.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/1.144, allocations: 6.156 kB / 0.6879 GB, free: 37.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/1.144, allocations: 385.9 kB / 0.6882 GB, free: 37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/1.147, allocations: 0.619 MB / 0.6888 GB, free: 36.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004662/1.151, allocations: 3.244 MB / 0.692 GB, free: 35.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008751/1.152, allocations: 1.774 MB / 0.6937 GB, free: 34.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001234/1.154, allocations: 388 kB / 0.6941 GB, free: 34.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/1.154, allocations: 163.2 kB / 0.6943 GB, free: 34.53 MB / 442.7 MB Notification: Performance of SimCode: time 5.51e-07/1.154, allocations: 0 / 0.6943 GB, free: 34.53 MB / 442.7 MB Notification: Performance of Templates: time 0.04773/1.201, allocations: 29.28 MB / 0.7229 GB, free: 10.62 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/jenkins/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