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.001735/0.001735, allocations: 114.5 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00208/0.00208, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2366, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01417/0.2508, allocations: 12.18 MB / 422.1 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006799/0.2577, allocations: 3.3 MB / 425.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.2596, allocations: 35.94 kB / 425.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002472/0.2621, allocations: 0.6646 MB / 426.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002782/0.265, allocations: 0.7286 MB / 426.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.2663, allocations: 403.5 kB / 427.2 MB, free: 240 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003589/0.2699, allocations: 2.409 MB / 429.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.2716, allocations: 0.993 MB / 430.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001705/0.2733, allocations: 0.9222 MB / 431.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.275, allocations: 0.98 MB / 432.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004854/0.2755, allocations: 228 kB / 432.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007971/0.2763, allocations: 272 kB / 433 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000403/0.2767, allocations: 454.3 kB / 433.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.2781, allocations: 1.073 MB / 434.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002892/0.281, allocations: 2.842 MB / 437.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.281, allocations: 0 / 437.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.281, allocations: 0 / 437.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.791e-05/0.281, allocations: 0 / 437.4 MB, free: 5.996 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.003906/0.285, allocations: 2.148 MB / 439.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.285, allocations: 12.03 kB / 439.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009837/0.286, allocations: 282.4 kB / 439.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.288, allocations: 1.126 MB / 440.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.122e-05/0.2881, allocations: 115.5 kB / 441.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/0.2883, allocations: 167.8 kB / 441.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.291, allocations: 1.512 MB / 442.7 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.054e-05/0.2911, allocations: 11.91 kB / 442.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.2912, allocations: 60 kB / 442.8 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.491e-05/0.2912, allocations: 40 kB / 442.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/0.2933, allocations: 1.045 MB / 443.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00905/0.3024, allocations: 6.226 MB / 450.1 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.304, allocations: 0.6114 MB / 450.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009677/0.305, allocations: 469.5 kB / 451.2 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.202e-05/0.3051, allocations: 16.55 kB / 451.2 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.3051, allocations: 47.06 kB / 451.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.455e-06/0.3051, allocations: 0 / 451.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005271/0.3104, allocations: 2.364 MB / 453.6 MB, free: 5.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.671e-05/0.3105, allocations: 115.5 kB / 453.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.3124, allocations: 1.31 MB / 455 MB, free: 3.715 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.3125, allocations: 33.7 kB / 455.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006096/0.3131, allocations: 0.8531 MB / 455.9 MB, free: 2.812 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.3133, allocations: 260.3 kB / 456.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002819/0.3136, allocations: 202.7 kB / 456.4 MB, free: 2.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3138, allocations: 353.9 kB / 456.7 MB, free: 2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.3144, allocations: 278.5 kB / 457 MB, free: 1.727 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/0.3155, allocations: 0.7342 MB / 457.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.3171, allocations: 1.092 MB / 458.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.3171, allocations: 4 kB / 458.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002504/0.3197, allocations: 1.26 MB / 460.1 MB, free: 14.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.3197, allocations: 12.5 kB / 460.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.3197, allocations: 20 kB / 460.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005397/0.3203, allocations: 130.4 kB / 460.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008922/0.3212, allocations: 259.6 kB / 460.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004233/0.3254, allocations: 4.627 MB / 465.1 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.3266, allocations: 67.88 kB / 465.2 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.933e-05/0.3267, allocations: 52 kB / 465.2 MB, free: 8.605 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.0006548/0.3274, allocations: 357.4 kB / 465.6 MB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002303/0.3276, allocations: 142.2 kB / 465.7 MB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001805/0.3294, allocations: 0.8296 MB / 466.6 MB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3295, allocations: 11.94 kB / 466.6 MB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3295, allocations: 0 / 466.6 MB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.3295, allocations: 7.984 kB / 466.6 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003809/0.3333, allocations: 2.323 MB / 468.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3333, allocations: 4.094 kB / 468.9 MB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/0.3339, allocations: 131.8 kB / 469 MB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000458/0.3344, allocations: 146.3 kB / 469.2 MB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.3344, allocations: 23.92 kB / 469.2 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004144/0.3386, allocations: 4.78 MB / 474 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.3386, allocations: 4 kB / 474 MB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.3411, allocations: 1.296 MB / 475.3 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005805/0.3417, allocations: 283.3 kB / 475.6 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.3419, allocations: 20 kB / 475.6 MB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005979/0.3425, allocations: 43.95 kB / 475.6 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.3427, allocations: 56.38 kB / 475.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.3427, allocations: 27.98 kB / 475.7 MB, free: 13.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001246/0.344, allocations: 0.8781 MB / 476.6 MB, free: 12.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.344, allocations: 0 / 476.6 MB, free: 12.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00121/0.3452, allocations: 324 kB / 476.9 MB, free: 12.28 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.0002658/0.3455, allocations: 155 kB / 477 MB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.3474, allocations: 1.121 MB / 478.2 MB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3474, allocations: 0 / 478.2 MB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009983/0.3484, allocations: 0.7111 MB / 478.9 MB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.3501, allocations: 364 kB / 479.2 MB, free: 9.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/0.3553, allocations: 2.943 MB / 482.2 MB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007695/0.3561, allocations: 1.217 MB / 483.4 MB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.3564, allocations: 95.42 kB / 483.5 MB, free: 5.5 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3564, allocations: 0 / 483.5 MB, free: 5.5 MB / 398.1 MB Notification: Performance of Templates: time 0.04781/0.4042, allocations: 41.31 MB / 0.5125 GB, free: 12.21 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/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