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.001422/0.001422, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.265, allocations: 50.55 MB / 409.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01198/0.277, allocations: 12.16 MB / 421.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005936/0.2829, allocations: 3.304 MB / 424.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/0.2847, allocations: 35.94 kB / 424.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002206/0.2869, allocations: 0.6997 MB / 425.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002877/0.2898, allocations: 0.7755 MB / 426.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.291, allocations: 407.5 kB / 426.6 MB, free: 132 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002961/0.2939, allocations: 2.42 MB / 429.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.2953, allocations: 0.9969 MB / 430 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.2965, allocations: 0.9183 MB / 431 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009136/0.2975, allocations: 0.9801 MB / 431.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002525/0.2977, allocations: 231.9 kB / 432.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004743/0.2982, allocations: 268 kB / 432.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003504/0.2986, allocations: 458.4 kB / 432.9 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.2996, allocations: 1.077 MB / 434 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002606/0.3022, allocations: 2.83 MB / 436.8 MB, free: 5.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3022, allocations: 0 / 436.8 MB, free: 5.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3022, allocations: 0 / 436.8 MB, free: 5.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.591e-05/0.3023, allocations: 0 / 436.8 MB, free: 5.891 MB / 350.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.003418/0.3057, allocations: 2.156 MB / 438.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3058, allocations: 8.031 kB / 439 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008613/0.3066, allocations: 282.4 kB / 439.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.3083, allocations: 1.126 MB / 440.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.664e-05/0.3083, allocations: 111.5 kB / 440.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.3085, allocations: 163.8 kB / 440.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/0.3108, allocations: 1.516 MB / 442.1 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.45e-05/0.3109, allocations: 7.906 kB / 442.1 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.311, allocations: 64 kB / 442.2 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.311, allocations: 36 kB / 442.2 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.3129, allocations: 1.049 MB / 443.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007222/0.3201, allocations: 6.23 MB / 449.5 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.3215, allocations: 0.6076 MB / 450.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008228/0.3224, allocations: 469.5 kB / 450.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.3224, allocations: 16.7 kB / 450.6 MB, free: 7.578 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.3225, allocations: 39.12 kB / 450.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.344e-06/0.3225, allocations: 3.938 kB / 450.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004428/0.3269, allocations: 2.364 MB / 453 MB, free: 5.074 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.327, allocations: 119.5 kB / 453.1 MB, free: 4.934 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.3286, allocations: 1.306 MB / 454.4 MB, free: 3.613 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.3287, allocations: 37.7 kB / 454.5 MB, free: 3.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006649/0.3293, allocations: 0.8492 MB / 455.3 MB, free: 2.711 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.3295, allocations: 260.3 kB / 455.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.3298, allocations: 206.7 kB / 455.8 MB, free: 2.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.33, allocations: 349.9 kB / 456.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005508/0.3305, allocations: 282.5 kB / 456.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008299/0.3314, allocations: 0.7342 MB / 457.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.3328, allocations: 1.092 MB / 458.2 MB, free: 15.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.3329, allocations: 8 kB / 458.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002179/0.3351, allocations: 1.26 MB / 459.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3351, allocations: 12 kB / 459.5 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.3351, allocations: 16 kB / 459.5 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004724/0.3356, allocations: 142.5 kB / 459.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007924/0.3364, allocations: 251.6 kB / 459.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003789/0.3402, allocations: 4.626 MB / 464.5 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007838/0.341, allocations: 63.81 kB / 464.6 MB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.735e-05/0.3411, allocations: 56 kB / 464.6 MB, free: 8.496 MB / 382.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.0004693/0.3415, allocations: 357.3 kB / 465 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.3417, allocations: 146.4 kB / 465.1 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.3434, allocations: 0.8256 MB / 466 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.3434, allocations: 11.94 kB / 466 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.3434, allocations: 0 / 466 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3434, allocations: 3.984 kB / 466 MB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.3469, allocations: 2.33 MB / 468.3 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.347, allocations: 7.984 kB / 468.3 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.3475, allocations: 123.9 kB / 468.4 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004007/0.3479, allocations: 146.8 kB / 468.6 MB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.348, allocations: 23.92 kB / 468.6 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004076/0.352, allocations: 4.78 MB / 473.4 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.916e-06/0.3521, allocations: 8.062 kB / 473.4 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/0.3542, allocations: 1.3 MB / 474.7 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004028/0.3546, allocations: 275.3 kB / 475 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.3548, allocations: 23.98 kB / 475 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/0.3554, allocations: 39.97 kB / 475 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.3555, allocations: 60.38 kB / 475.1 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.3555, allocations: 27.98 kB / 475.1 MB, free: 13.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001214/0.3568, allocations: 0.8781 MB / 476 MB, free: 12.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3568, allocations: 3.938 kB / 476 MB, free: 12.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001155/0.3579, allocations: 328 kB / 476.3 MB, free: 12.16 MB / 398.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.0002369/0.3582, allocations: 143.1 kB / 476.5 MB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.3599, allocations: 1.121 MB / 477.6 MB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3599, allocations: 0 / 477.6 MB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009196/0.3608, allocations: 0.7101 MB / 478.3 MB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.3623, allocations: 366.7 kB / 478.6 MB, free: 9.754 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.367, allocations: 2.902 MB / 481.5 MB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007174/0.3677, allocations: 1.21 MB / 482.8 MB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005157/0.3683, allocations: 175.5 kB / 482.9 MB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.3685, allocations: 91.42 kB / 483 MB, free: 5.27 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3685, allocations: 4 kB / 483 MB, free: 5.266 MB / 398.1 MB Notification: Performance of Templates: time 0.03018/0.3986, allocations: 17.98 MB / 0.4893 GB, free: 3.449 MB / 414.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