Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009159/0.0009158, allocations: 96.23 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 199.7 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.7 MB / 246.4 MB, free: 11.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002207/0.0002207, allocations: 11.98 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1056, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01157/0.1172, allocations: 10.77 MB / 369.4 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2113/0.3286, allocations: 3.102 MB / 372.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.3303, allocations: 36.5 kB / 372.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.3321, allocations: 0.5225 MB / 373.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002509/0.3346, allocations: 0.5996 MB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008856/0.3355, allocations: 252.9 kB / 373.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003223/0.3387, allocations: 2.158 MB / 376.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.34, allocations: 0.6892 MB / 376.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001616/0.3416, allocations: 0.7245 MB / 377.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.3427, allocations: 0.8059 MB / 378.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.3429, allocations: 106.3 kB / 378.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004713/0.3434, allocations: 145.7 kB / 378.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002553/0.3437, allocations: 314.1 kB / 378.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005009/0.3442, allocations: 408.8 kB / 379.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002617/0.3468, allocations: 2.224 MB / 381.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3468, allocations: 0 / 381.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3468, allocations: 0 / 381.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.365e-05/0.3469, allocations: 1.062 kB / 381.5 MB, free: 8.93 MB / 302.1 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.003306/0.3502, allocations: 1.861 MB / 383.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.3502, allocations: 9.844 kB / 383.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008813/0.3511, allocations: 287.9 kB / 383.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/0.3528, allocations: 1.064 MB / 384.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.847e-05/0.3529, allocations: 114 kB / 384.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002266/0.3532, allocations: 162 kB / 385 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002663/0.3558, allocations: 1.504 MB / 386.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.143e-05/0.3559, allocations: 7.375 kB / 386.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.356, allocations: 63.28 kB / 386.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.3561, allocations: 38.16 kB / 386.6 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.3582, allocations: 1.063 MB / 387.6 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007622/0.3659, allocations: 6.312 MB / 393.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.3673, allocations: 0.6319 MB / 394.6 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008007/0.3681, allocations: 476.9 kB / 395 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.3681, allocations: 10.72 kB / 395.1 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.3682, allocations: 39.25 kB / 395.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.114e-06/0.3682, allocations: 0 / 395.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004737/0.3729, allocations: 2.457 MB / 397.5 MB, free: 380 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.373, allocations: 115.5 kB / 397.7 MB, free: 244 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/0.3749, allocations: 1.29 MB / 399 MB, free: 15.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.375, allocations: 40.48 kB / 399 MB, free: 15.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006048/0.3756, allocations: 0.8467 MB / 399.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.3758, allocations: 259.2 kB / 400.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.3759, allocations: 29.97 kB / 400.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.376, allocations: 346.6 kB / 400.5 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005631/0.3766, allocations: 295.3 kB / 400.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008759/0.3775, allocations: 0.7398 MB / 401.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006648/0.3781, allocations: 410.3 kB / 401.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.3781, allocations: 2.938 kB / 401.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00225/0.3804, allocations: 1.3 MB / 403.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3804, allocations: 12.09 kB / 403.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.3805, allocations: 19.19 kB / 403.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005222/0.381, allocations: 143.2 kB / 403.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008546/0.3819, allocations: 261.8 kB / 403.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003806/0.3857, allocations: 4.308 MB / 407.9 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.3869, allocations: 71.94 kB / 408 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.673e-05/0.387, allocations: 52 kB / 408 MB, free: 7.555 MB / 318.1 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 (137): * Single equations (assignments): 134 * 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.0008002/0.3878, allocations: 353.9 kB / 408.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.3881, allocations: 142.3 kB / 408.5 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.3899, allocations: 0.8647 MB / 409.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3899, allocations: 8.141 kB / 409.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3899, allocations: 7.953 kB / 409.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3899, allocations: 7.969 kB / 409.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.3939, allocations: 2.364 MB / 411.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.394, allocations: 4 kB / 411.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005666/0.3945, allocations: 132.3 kB / 411.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000447/0.395, allocations: 149.1 kB / 412.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.3951, allocations: 19.98 kB / 412.1 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004048/0.3991, allocations: 4.457 MB / 416.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3991, allocations: 4 kB / 416.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.4017, allocations: 1.347 MB / 417.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006235/0.4023, allocations: 279.4 kB / 418.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.4025, allocations: 19.98 kB / 418.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.4032, allocations: 47.91 kB / 418.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.4033, allocations: 68.38 kB / 418.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.203e-05/0.4034, allocations: 20 kB / 418.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001722/0.4051, allocations: 0.8625 MB / 419.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4051, allocations: 0 / 419.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001507/0.4066, allocations: 336 kB / 419.5 MB, free: 11.46 MB / 334.1 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.0002886/0.4069, allocations: 140.5 kB / 419.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.4089, allocations: 1.127 MB / 420.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4089, allocations: 4 kB / 420.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.41, allocations: 0.7156 MB / 421.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.4118, allocations: 351 kB / 421.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005857/0.4177, allocations: 3.575 MB / 425.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008634/0.4186, allocations: 1.214 MB / 426.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000815/0.4194, allocations: 179.6 kB / 426.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.4197, allocations: 87.42 kB / 426.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4197, allocations: 0 / 426.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of Templates: time 0.03204/0.4517, allocations: 16.18 MB / 443.1 MB, free: 3.91 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches