Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007415/0.0007415, allocations: 88.25 kB / 296.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000202/0.000202, allocations: 4 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.193, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.007121/0.2002, allocations: 10.41 MB / 418.5 MB, free: 17.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004041/0.2043, allocations: 3.069 MB / 421.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007924/0.2051, allocations: 39.88 kB / 421.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.2062, allocations: 0.5048 MB / 422.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001182/0.2074, allocations: 0.5545 MB / 422.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.208, allocations: 251.6 kB / 422.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0015/0.2095, allocations: 2.082 MB / 425 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009035/0.2104, allocations: 0.8463 MB / 425.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000665/0.2111, allocations: 0.6689 MB / 426.5 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005657/0.2117, allocations: 0.7465 MB / 427.2 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.2118, allocations: 100 kB / 427.3 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002997/0.2122, allocations: 143.9 kB / 427.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.2123, allocations: 290.6 kB / 427.7 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005389/0.2129, allocations: 0.8648 MB / 428.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.2141, allocations: 2.107 MB / 430.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2141, allocations: 0 / 430.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2141, allocations: 0 / 430.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.172e-05/0.2141, allocations: 0 / 430.7 MB, free: 4.941 MB / 298.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.002402/0.2165, allocations: 1.756 MB / 432.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.2166, allocations: 8.031 kB / 432.5 MB, free: 3.113 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006428/0.2172, allocations: 266.4 kB / 432.7 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.2184, allocations: 1.013 MB / 433.7 MB, free: 1.797 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/0.2185, allocations: 119.4 kB / 433.9 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.2186, allocations: 159.8 kB / 434 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002015/0.2207, allocations: 1.483 MB / 435.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.73e-05/0.2207, allocations: 11.84 kB / 435.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/0.2209, allocations: 71.94 kB / 435.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.2209, allocations: 36 kB / 435.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.2228, allocations: 0.9708 MB / 436.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007874/0.2306, allocations: 6.602 MB / 443.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007873/0.2315, allocations: 412.1 kB / 443.6 MB, free: 7.504 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.2319, allocations: 227.7 kB / 443.8 MB, free: 7.281 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.2319, allocations: 4.438 kB / 443.8 MB, free: 7.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005056/0.2324, allocations: 280.7 kB / 444.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.735e-06/0.2325, allocations: 0 / 444.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003144/0.2356, allocations: 1.777 MB / 445.9 MB, free: 5.109 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.2357, allocations: 162.8 kB / 446 MB, free: 4.914 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.2374, allocations: 1.261 MB / 447.3 MB, free: 3.637 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.2374, allocations: 33.7 kB / 447.3 MB, free: 3.598 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000643/0.2381, allocations: 0.8712 MB / 448.2 MB, free: 2.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000173/0.2382, allocations: 205.2 kB / 448.4 MB, free: 2.512 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.2383, allocations: 28 kB / 448.4 MB, free: 2.484 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2384, allocations: 349.9 kB / 448.8 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004531/0.2389, allocations: 238.5 kB / 449 MB, free: 1.902 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008028/0.2397, allocations: 0.8034 MB / 449.8 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.2411, allocations: 1.118 MB / 450.9 MB, free: 15.44 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.2411, allocations: 4 kB / 450.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001885/0.243, allocations: 1.177 MB / 452.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.2431, allocations: 45.86 kB / 452.1 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.2431, allocations: 20 kB / 452.2 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.2433, allocations: 65.58 kB / 452.2 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007661/0.2441, allocations: 271.6 kB / 452.5 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.2458, allocations: 2.579 MB / 455.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008686/0.2467, allocations: 72.05 kB / 455.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.197e-05/0.2468, allocations: 60 kB / 455.2 MB, free: 10.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * 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.0005788/0.2474, allocations: 363.1 kB / 455.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.2476, allocations: 134.3 kB / 455.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00106/0.2486, allocations: 0.5645 MB / 456.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.2486, allocations: 7.938 kB / 456.3 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2487, allocations: 0 / 456.3 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2487, allocations: 0 / 456.3 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.2514, allocations: 1.893 MB / 458.2 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/0.2514, allocations: 4 kB / 458.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/0.2519, allocations: 103.9 kB / 458.3 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001484/0.252, allocations: 50.05 kB / 458.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.2521, allocations: 20 kB / 458.3 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.2538, allocations: 2.545 MB / 460.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.2538, allocations: 11.88 kB / 460.9 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.2553, allocations: 0.9306 MB / 461.8 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004062/0.2557, allocations: 255.4 kB / 462.1 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.2558, allocations: 16 kB / 462.1 MB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005035/0.2564, allocations: 39.97 kB / 462.1 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2565, allocations: 55.81 kB / 462.2 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.2565, allocations: 20 kB / 462.2 MB, free: 3.359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001196/0.2577, allocations: 0.8344 MB / 463 MB, free: 2.523 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2577, allocations: 0 / 463 MB, free: 2.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001068/0.2588, allocations: 312 kB / 463.3 MB, free: 2.219 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * 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.0002107/0.259, allocations: 131.1 kB / 463.5 MB, free: 2.078 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.2605, allocations: 0.9288 MB / 464.4 MB, free: 1.113 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2605, allocations: 4 kB / 464.4 MB, free: 1.109 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006119/0.2611, allocations: 458.9 kB / 464.8 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.2631, allocations: 315.5 kB / 465.2 MB, free: 344 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004082/0.2672, allocations: 3.135 MB / 468.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007194/0.2679, allocations: 1.182 MB / 469.5 MB, free: 11.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.2681, allocations: 91.44 kB / 469.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2681, allocations: 4 kB / 469.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of Templates: time 0.03309/0.3012, allocations: 31.26 MB / 0.4891 GB, free: 12.57 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches