Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 180.2 kB / 13.66 MB, free: 1.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001039/0.001038, allocations: 90.69 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.479e-05/2.489e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09027, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4119/0.5022, allocations: 94.48 MB / 463.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.5026, allocations: 83.52 kB / 463.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1746/0.6772, allocations: 40.79 MB / 0.4926 GB, free: 7.559 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6773, allocations: 7.938 kB / 0.4926 GB, free: 7.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001479/0.6775, allocations: 35.94 kB / 0.4927 GB, free: 7.516 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00496/0.6824, allocations: 1.554 MB / 0.4942 GB, free: 5.898 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.6825, allocations: 8.031 kB / 0.4942 GB, free: 5.891 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.6841, allocations: 257.6 kB / 0.4944 GB, free: 5.637 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003693/0.6878, allocations: 1.098 MB / 0.4955 GB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.688, allocations: 111.1 kB / 0.4956 GB, free: 4.383 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004775/0.6885, allocations: 167.9 kB / 0.4958 GB, free: 4.219 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004308/0.6928, allocations: 1.417 MB / 0.4972 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-05/0.693, allocations: 15.84 kB / 0.4972 GB, free: 2.711 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002202/0.6932, allocations: 64 kB / 0.4972 GB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-05/0.6933, allocations: 36 kB / 0.4973 GB, free: 2.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00321/0.6965, allocations: 0.9164 MB / 0.4982 GB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/0.7113, allocations: 6.66 MB / 0.5047 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.7124, allocations: 360.3 kB / 0.505 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005543/0.713, allocations: 210.2 kB / 0.5052 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.99e-05/0.7131, allocations: 4.438 kB / 0.5052 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006342/0.7137, allocations: 257.6 kB / 0.5055 GB, free: 9.824 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 5.56e-06/0.7138, allocations: 3.984 kB / 0.5055 GB, free: 9.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=56): time 0.004359/0.7181, allocations: 1.62 MB / 0.507 GB, free: 8.137 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.7183, allocations: 184.5 kB / 0.5072 GB, free: 7.914 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/0.7207, allocations: 1.065 MB / 0.5083 GB, free: 6.836 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.7209, allocations: 37.7 kB / 0.5083 GB, free: 6.793 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009432/0.7219, allocations: 0.8497 MB / 0.5091 GB, free: 5.934 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/0.7222, allocations: 209.2 kB / 0.5093 GB, free: 5.727 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.7e-05/0.7223, allocations: 28 kB / 0.5094 GB, free: 5.699 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.7225, allocations: 350.8 kB / 0.5097 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006401/0.7231, allocations: 210.6 kB / 0.5099 GB, free: 5.145 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.7242, allocations: 0.784 MB / 0.5107 GB, free: 4.074 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009721/0.7252, allocations: 387.3 kB / 0.511 GB, free: 3.691 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/0.7253, allocations: 4 kB / 0.511 GB, free: 3.688 MB / 394.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002711/0.728, allocations: 1.053 MB / 0.5121 GB, free: 2.617 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.387e-05/0.7281, allocations: 45.81 kB / 0.5121 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.227e-05/0.7281, allocations: 24 kB / 0.5121 GB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003316/0.7285, allocations: 69.64 kB / 0.5122 GB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/0.7302, allocations: 271.5 kB / 0.5124 GB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002634/0.7329, allocations: 2.583 MB / 0.515 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00184/0.7348, allocations: 71.98 kB / 0.515 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000203/0.7351, allocations: 60 kB / 0.5151 GB, free: 15.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003092/0.7354, allocations: 193.3 kB / 0.5153 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003562/0.7358, allocations: 126.4 kB / 0.5154 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001558/0.7373, allocations: 0.5174 MB / 0.5159 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.7374, allocations: 15.95 kB / 0.5159 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.7374, allocations: 0 / 0.5159 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.7374, allocations: 0 / 0.5159 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004755/0.7422, allocations: 1.897 MB / 0.5178 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.7423, allocations: 4 kB / 0.5178 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008771/0.7431, allocations: 103.9 kB / 0.5179 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002616/0.7434, allocations: 45.66 kB / 0.5179 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.044e-05/0.7435, allocations: 19.94 kB / 0.5179 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.7459, allocations: 2.541 MB / 0.5204 GB, free: 9.355 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/0.746, allocations: 15.92 kB / 0.5204 GB, free: 9.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.7482, allocations: 1.071 MB / 0.5215 GB, free: 8.078 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008/0.7491, allocations: 259.4 kB / 0.5217 GB, free: 7.805 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.7493, allocations: 16 kB / 0.5217 GB, free: 7.789 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.7504, allocations: 27.98 kB / 0.5218 GB, free: 7.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.7506, allocations: 63.81 kB / 0.5218 GB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-05/0.7507, allocations: 16 kB / 0.5218 GB, free: 7.684 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001924/0.7526, allocations: 0.7897 MB / 0.5226 GB, free: 6.891 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.7526, allocations: 0 / 0.5226 GB, free: 6.891 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002149/0.7548, allocations: 340 kB / 0.5229 GB, free: 6.559 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007361/0.7556, allocations: 313.8 kB / 0.5232 GB, free: 6.246 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.7578, allocations: 0.8855 MB / 0.5241 GB, free: 5.324 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.7579, allocations: 0 / 0.5241 GB, free: 5.324 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009794/0.7589, allocations: 439.2 kB / 0.5245 GB, free: 4.871 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/0.7614, allocations: 313.6 kB / 0.5248 GB, free: 4.566 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005781/0.7673, allocations: 1.954 MB / 0.5267 GB, free: 2.523 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.7684, allocations: 1.213 MB / 0.5279 GB, free: 1.277 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000454/0.7689, allocations: 95.42 kB / 0.528 GB, free: 1.188 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/0.7689, allocations: 0 / 0.528 GB, free: 1.188 MB / 410.7 MB Notification: Performance of Templates: time 0.3231/1.092, allocations: 30.86 MB / 0.5581 GB, free: 104.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches