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.00116/0.00116, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 71.75 kB / 307 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1093, allocations: 50.54 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01971/0.1291, allocations: 12.16 MB / 369.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2275/0.3566, allocations: 3.305 MB / 373 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001776/0.3585, allocations: 38.22 kB / 373 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.3607, allocations: 0.6629 MB / 373.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002829/0.3636, allocations: 0.7214 MB / 374.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.3649, allocations: 408.6 kB / 374.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003986/0.3689, allocations: 2.39 MB / 377.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.3702, allocations: 0.9959 MB / 378.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.3717, allocations: 0.9068 MB / 379.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001111/0.3729, allocations: 0.9844 MB / 380.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003527/0.3732, allocations: 229.1 kB / 380.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006535/0.3739, allocations: 270 kB / 380.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002951/0.3742, allocations: 451.1 kB / 381 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009848/0.3752, allocations: 1.078 MB / 382.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003294/0.3785, allocations: 2.796 MB / 384.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3785, allocations: 0 / 384.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3785, allocations: 0 / 384.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.326e-05/0.3786, allocations: 1.125 kB / 384.9 MB, free: 6.777 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.003832/0.3824, allocations: 2.158 MB / 387.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3825, allocations: 8.656 kB / 387.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009162/0.3834, allocations: 286.9 kB / 387.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.385, allocations: 1.104 MB / 388.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/0.385, allocations: 118.7 kB / 388.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002002/0.3852, allocations: 157.5 kB / 388.7 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002361/0.3876, allocations: 1.509 MB / 390.2 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.055e-05/0.3877, allocations: 11.33 kB / 390.2 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.3878, allocations: 62.44 kB / 390.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.159e-05/0.3878, allocations: 37.47 kB / 390.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/0.3897, allocations: 1.053 MB / 391.4 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007705/0.3974, allocations: 6.292 MB / 397.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.3991, allocations: 0.6176 MB / 398.3 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009416/0.4001, allocations: 461.1 kB / 398.8 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.511e-05/0.4001, allocations: 12.33 kB / 398.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.4002, allocations: 46.19 kB / 398.8 MB, free: 13.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.415e-06/0.4002, allocations: 0 / 398.8 MB, free: 13.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005526/0.4057, allocations: 2.36 MB / 401.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.413e-05/0.4058, allocations: 113.6 kB / 401.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.4076, allocations: 1.302 MB / 402.6 MB, free: 10.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/0.4077, allocations: 40.36 kB / 402.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007422/0.4084, allocations: 0.8481 MB / 403.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.4087, allocations: 262.9 kB / 403.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.409, allocations: 204.8 kB / 403.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4092, allocations: 358.6 kB / 404.3 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005951/0.4098, allocations: 279.5 kB / 404.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.4109, allocations: 0.7327 MB / 405.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.4127, allocations: 1.096 MB / 406.4 MB, free: 7.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.4127, allocations: 4 kB / 406.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002736/0.4154, allocations: 1.26 MB / 407.6 MB, free: 6.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.4155, allocations: 8.5 kB / 407.7 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/0.4155, allocations: 20 kB / 407.7 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005338/0.4161, allocations: 136 kB / 407.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008717/0.417, allocations: 255.5 kB / 408.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004596/0.4216, allocations: 4.637 MB / 412.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.4228, allocations: 55.88 kB / 412.8 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.918e-05/0.4229, allocations: 56.06 kB / 412.8 MB, free: 0.6367 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007447/0.4236, allocations: 369 kB / 413.2 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.4239, allocations: 142.3 kB / 413.3 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.4258, allocations: 0.8368 MB / 414.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.4258, allocations: 8 kB / 414.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4258, allocations: 3.938 kB / 414.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.4259, allocations: 7.984 kB / 414.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/0.4302, allocations: 2.332 MB / 416.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.4302, allocations: 8.031 kB / 416.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.4308, allocations: 127.8 kB / 416.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004778/0.4313, allocations: 130.5 kB / 416.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.4313, allocations: 23.92 kB / 416.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00499/0.4363, allocations: 4.79 MB / 421.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/0.4364, allocations: 7.938 kB / 421.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002839/0.4392, allocations: 1.287 MB / 422.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000757/0.44, allocations: 283.3 kB / 423.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.4402, allocations: 23.94 kB / 423.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006691/0.4409, allocations: 39.95 kB / 423.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.4411, allocations: 60.38 kB / 423.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.024e-05/0.4411, allocations: 27.98 kB / 423.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001482/0.4426, allocations: 0.8781 MB / 424.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4426, allocations: 0 / 424.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001359/0.444, allocations: 324 kB / 424.5 MB, free: 4.324 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002952/0.4443, allocations: 145.7 kB / 424.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002347/0.4466, allocations: 1.136 MB / 425.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.4467, allocations: 4 kB / 425.8 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.4478, allocations: 0.7158 MB / 426.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.4496, allocations: 372.8 kB / 426.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005895/0.4555, allocations: 2.938 MB / 429.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.4565, allocations: 1.214 MB / 431 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007481/0.4573, allocations: 171.6 kB / 431.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.4575, allocations: 95.36 kB / 431.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4575, allocations: 0 / 431.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of Templates: time 0.03729/0.4948, allocations: 17.69 MB / 448.9 MB, free: 11.89 MB / 366.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.1.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