Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 206.7 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007278/0.0007279, allocations: 95.42 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000217/0.000217, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1935, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.3147, allocations: 105.1 MB / 0.5017 GB, free: 2.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.3149, allocations: 80.69 kB / 0.5018 GB, free: 2.359 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4345/0.7495, allocations: 141.5 MB / 0.6399 GB, free: 1.445 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.7495, allocations: 0 / 0.6399 GB, free: 1.445 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001199/0.7497, allocations: 44 kB / 0.64 GB, free: 1.402 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.007323/0.757, allocations: 3.516 MB / 0.6434 GB, free: 13.81 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.7571, allocations: 8.031 kB / 0.6434 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006208/0.7577, allocations: 419.2 kB / 0.6438 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004017/0.7617, allocations: 2.62 MB / 0.6464 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.7618, allocations: 40.94 kB / 0.6464 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.7619, allocations: 55.98 kB / 0.6464 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.7633, allocations: 0.8573 MB / 0.6473 GB, free: 9.715 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.7634, allocations: 7.984 kB / 0.6473 GB, free: 9.707 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.7635, allocations: 20 kB / 0.6473 GB, free: 9.688 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.7635, allocations: 19.98 kB / 0.6473 GB, free: 9.668 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.765, allocations: 0.8592 MB / 0.6482 GB, free: 8.809 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00551/0.7705, allocations: 3.261 MB / 0.6514 GB, free: 5.469 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.7717, allocations: 0.6142 MB / 0.652 GB, free: 4.844 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009557/0.7726, allocations: 0.675 MB / 0.6526 GB, free: 4.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2264/0.9991, allocations: 36.34 MB / 0.6881 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006767/0.9998, allocations: 386.7 kB / 0.6885 GB, free: 72.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.875e-06/0.9998, allocations: 3.344 kB / 0.6885 GB, free: 72.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002017/1.002, allocations: 1.171 MB / 0.6896 GB, free: 72.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/1.002, allocations: 279.2 kB / 0.6899 GB, free: 72.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003454/1.005, allocations: 3.17 MB / 0.693 GB, free: 71.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/1.005, allocations: 36.3 kB / 0.693 GB, free: 71.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/1.006, allocations: 1.576 MB / 0.6946 GB, free: 71.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/1.007, allocations: 171.3 kB / 0.6947 GB, free: 71.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/1.007, allocations: 18.16 kB / 0.6947 GB, free: 71.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/1.007, allocations: 335.9 kB / 0.6951 GB, free: 71.24 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005024/1.007, allocations: 259.7 kB / 0.6953 GB, free: 71.24 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007002/1.008, allocations: 0.6716 MB / 0.696 GB, free: 70.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/1.009, allocations: 0.9413 MB / 0.6969 GB, free: 70.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/1.009, allocations: 1.781 kB / 0.6969 GB, free: 70.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001864/1.011, allocations: 1.286 MB / 0.6981 GB, free: 70.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/1.011, allocations: 10.62 kB / 0.6981 GB, free: 70.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.629e-05/1.011, allocations: 88.92 kB / 0.6982 GB, free: 70.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/1.011, allocations: 18.16 kB / 0.6982 GB, free: 70.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006447/1.012, allocations: 213.5 kB / 0.6985 GB, free: 70.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/1.012, allocations: 23.78 kB / 0.6985 GB, free: 70.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/1.013, allocations: 127.4 kB / 0.6986 GB, free: 70.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/1.013, allocations: 62.73 kB / 0.6987 GB, free: 70.03 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.0009291/1.014, allocations: 460.5 kB / 0.6991 GB, free: 69.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/1.014, allocations: 401.8 kB / 0.6995 GB, free: 69.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/1.017, allocations: 1.25 MB / 0.7007 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/1.017, allocations: 11.06 kB / 0.7007 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.017, allocations: 0 / 0.7007 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.017, allocations: 2.812 kB / 0.7007 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/1.02, allocations: 2.313 MB / 0.703 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.248e-05/1.02, allocations: 75.72 kB / 0.703 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/1.021, allocations: 106.9 kB / 0.7031 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/1.021, allocations: 0 / 0.7031 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.227e-05/1.021, allocations: 36.44 kB / 0.7032 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/1.021, allocations: 0 / 0.7032 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.021, allocations: 7.188 kB / 0.7032 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/1.023, allocations: 1.37 MB / 0.7045 GB, free: 68.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007641/1.023, allocations: 0.5083 MB / 0.705 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003013/1.024, allocations: 15.2 kB / 0.705 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006736/1.024, allocations: 48.23 kB / 0.7051 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/1.025, allocations: 57.91 kB / 0.7051 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/1.025, allocations: 38.78 kB / 0.7052 GB, free: 68.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002346/1.027, allocations: 2.056 MB / 0.7072 GB, free: 68.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.027, allocations: 0 / 0.7072 GB, free: 68.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001462/1.028, allocations: 0.6677 MB / 0.7078 GB, free: 68.36 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.001116/1.03, allocations: 0.8858 MB / 0.7087 GB, free: 68.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/1.031, allocations: 0.8542 MB / 0.7095 GB, free: 68.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/1.031, allocations: 2.656 kB / 0.7095 GB, free: 68.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/1.032, allocations: 460.8 kB / 0.71 GB, free: 68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/1.034, allocations: 0.6284 MB / 0.7106 GB, free: 67.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00594/1.04, allocations: 5.186 MB / 0.7157 GB, free: 65.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008439/1.041, allocations: 1.711 MB / 0.7173 GB, free: 64.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003145/1.042, allocations: 163.8 kB / 0.7175 GB, free: 64.81 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/1.042, allocations: 0 / 0.7175 GB, free: 64.81 MB / 442.7 MB Notification: Performance of Templates: time 0.0482/1.09, allocations: 39.76 MB / 0.7563 GB, free: 53.38 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches