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_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001794/0.001794, allocations: 181 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.979/2.979, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001258/0.001258, allocations: 89.48 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004549/0.0004551, allocations: 8 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3499, allocations: 47.57 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1649/0.5149, allocations: 94.99 MB / 470.7 MB, free: 1.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005263/0.5156, allocations: 83.95 kB / 470.8 MB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5861/1.102, allocations: 44.48 MB / 0.5032 GB, free: 93.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.32e-06/1.102, allocations: 2.906 kB / 0.5032 GB, free: 93.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001741/1.102, allocations: 36.81 kB / 0.5032 GB, free: 93.77 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.008995/1.111, allocations: 1.811 MB / 0.505 GB, free: 92.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.522e-05/1.111, allocations: 7.844 kB / 0.505 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002497/1.114, allocations: 285.4 kB / 0.5053 GB, free: 92.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00631/1.12, allocations: 1.247 MB / 0.5065 GB, free: 92.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003527/1.12, allocations: 114.9 kB / 0.5066 GB, free: 92.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001306/1.122, allocations: 158.8 kB / 0.5068 GB, free: 92.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007114/1.129, allocations: 1.505 MB / 0.5082 GB, free: 92.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/1.129, allocations: 16.16 kB / 0.5083 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002747/1.13, allocations: 64.91 kB / 0.5083 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.064e-05/1.13, allocations: 41.44 kB / 0.5084 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004631/1.134, allocations: 1.066 MB / 0.5094 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01955/1.154, allocations: 6.419 MB / 0.5157 GB, free: 88.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002899/1.157, allocations: 0.6377 MB / 0.5163 GB, free: 88.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/1.159, allocations: 464 kB / 0.5167 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/1.159, allocations: 10.55 kB / 0.5167 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.413e-05/1.159, allocations: 42.94 kB / 0.5168 GB, free: 87.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 7.344e-06/1.159, allocations: 0 / 0.5168 GB, free: 87.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.01134/1.17, allocations: 2.496 MB / 0.5192 GB, free: 86.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/1.17, allocations: 121.9 kB / 0.5193 GB, free: 86.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/1.174, allocations: 1.247 MB / 0.5205 GB, free: 85.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002996/1.175, allocations: 37.61 kB / 0.5206 GB, free: 85.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001083/1.176, allocations: 0.8718 MB / 0.5214 GB, free: 85.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005108/1.176, allocations: 253.1 kB / 0.5217 GB, free: 85.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.407e-05/1.177, allocations: 26.81 kB / 0.5217 GB, free: 84.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/1.177, allocations: 349.1 kB / 0.522 GB, free: 84.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/1.178, allocations: 292.2 kB / 0.5223 GB, free: 84.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/1.18, allocations: 0.7496 MB / 0.523 GB, free: 83.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002881/1.183, allocations: 1.106 MB / 0.5241 GB, free: 82.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/1.183, allocations: 7.594 kB / 0.5241 GB, free: 82.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.005073/1.188, allocations: 1.311 MB / 0.5254 GB, free: 82.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.841e-05/1.188, allocations: 12.03 kB / 0.5254 GB, free: 82.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-05/1.188, allocations: 19.47 kB / 0.5254 GB, free: 82.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009322/1.189, allocations: 139.5 kB / 0.5256 GB, free: 82.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/1.191, allocations: 269 kB / 0.5258 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005493/1.196, allocations: 4.32 MB / 0.5301 GB, free: 78.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002365/1.199, allocations: 70.66 kB / 0.5301 GB, free: 78.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002733/1.199, allocations: 51.56 kB / 0.5302 GB, free: 78.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.002388/1.201, allocations: 363.4 kB / 0.5305 GB, free: 77.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/1.202, allocations: 142.1 kB / 0.5307 GB, free: 77.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00393/1.206, allocations: 0.8649 MB / 0.5315 GB, free: 77.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.266e-05/1.206, allocations: 10.34 kB / 0.5315 GB, free: 77.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.206, allocations: 0 / 0.5315 GB, free: 77.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.822e-05/1.206, allocations: 6.781 kB / 0.5315 GB, free: 77.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007387/1.214, allocations: 2.357 MB / 0.5338 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/1.214, allocations: 3.938 kB / 0.5338 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009449/1.215, allocations: 128.7 kB / 0.5339 GB, free: 76.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007772/1.216, allocations: 149.5 kB / 0.5341 GB, free: 76.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-05/1.216, allocations: 20 kB / 0.5341 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005389/1.221, allocations: 4.456 MB / 0.5385 GB, free: 71.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/1.221, allocations: 6.594 kB / 0.5385 GB, free: 71.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004359/1.226, allocations: 1.355 MB / 0.5398 GB, free: 70.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/1.227, allocations: 282.9 kB / 0.5401 GB, free: 70.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/1.227, allocations: 19.75 kB / 0.5401 GB, free: 70.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007651/1.228, allocations: 46.84 kB / 0.5401 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002706/1.228, allocations: 62.25 kB / 0.5402 GB, free: 70.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.496e-05/1.228, allocations: 23.84 kB / 0.5402 GB, free: 70.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00226/1.231, allocations: 0.8312 MB / 0.541 GB, free: 69.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.231, allocations: 0 / 0.541 GB, free: 69.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00331/1.234, allocations: 379.1 kB / 0.5414 GB, free: 69.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001083/1.235, allocations: 397.9 kB / 0.5418 GB, free: 69.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00362/1.239, allocations: 1.135 MB / 0.5429 GB, free: 67.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/1.239, allocations: 0 / 0.5429 GB, free: 67.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0017/1.241, allocations: 0.7223 MB / 0.5436 GB, free: 67.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005137/1.246, allocations: 344.6 kB / 0.5439 GB, free: 66.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/1.257, allocations: 3.625 MB / 0.5474 GB, free: 63.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/1.258, allocations: 1.219 MB / 0.5486 GB, free: 62.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006709/1.259, allocations: 98.86 kB / 0.5487 GB, free: 62.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/1.259, allocations: 0 / 0.5487 GB, free: 62.43 MB / 378.7 MB Notification: Performance of Templates: time 0.07522/1.334, allocations: 41.87 MB / 0.5896 GB, free: 20.91 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches