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.0009672/0.0009672, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002455, allocations: 8.234 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/0.08567, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01129/0.097, allocations: 11.49 MB / 371.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1597/0.2567, allocations: 3.247 MB / 374.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001533/0.2583, allocations: 34.22 kB / 374.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001981/0.2603, allocations: 0.567 MB / 375.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002453/0.2627, allocations: 0.6346 MB / 375.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.2638, allocations: 353.5 kB / 376.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003056/0.2668, allocations: 2.273 MB / 378.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.2681, allocations: 0.8472 MB / 379.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.2694, allocations: 0.7563 MB / 380.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.2708, allocations: 0.8425 MB / 381 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003602/0.2711, allocations: 106.3 kB / 381.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007234/0.2719, allocations: 143.8 kB / 381.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003037/0.2722, allocations: 326.6 kB / 381.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001329/0.2735, allocations: 0.9594 MB / 382.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002386/0.2759, allocations: 2.229 MB / 384.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2759, allocations: 0 / 384.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2759, allocations: 0 / 384.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.197e-05/0.276, allocations: 0 / 384.7 MB, free: 7.844 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.00287/0.2789, allocations: 1.839 MB / 386.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.2789, allocations: 9.5 kB / 386.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008418/0.2797, allocations: 294.1 kB / 386.8 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.2812, allocations: 1.096 MB / 387.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-05/0.2813, allocations: 113.2 kB / 388 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/0.2815, allocations: 161.6 kB / 388.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.2838, allocations: 1.525 MB / 389.7 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.928e-05/0.2839, allocations: 7.625 kB / 389.7 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.284, allocations: 65.94 kB / 389.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.248e-05/0.2841, allocations: 38.28 kB / 389.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.286, allocations: 1.07 MB / 390.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006767/0.2928, allocations: 6.322 MB / 397.2 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.2943, allocations: 0.6341 MB / 397.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009024/0.2953, allocations: 463.4 kB / 398.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.2953, allocations: 15.45 kB / 398.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.2953, allocations: 37.81 kB / 398.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.364e-06/0.2953, allocations: 1.25 kB / 398.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004997/0.3004, allocations: 2.476 MB / 400.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.3004, allocations: 112.5 kB / 401 MB, free: 12.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.3021, allocations: 1.3 MB / 402.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/0.3022, allocations: 40.95 kB / 402.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005378/0.3027, allocations: 0.8526 MB / 403.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.3029, allocations: 263.9 kB / 403.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.303, allocations: 87.42 kB / 403.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3031, allocations: 357.4 kB / 403.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005517/0.3037, allocations: 295.5 kB / 404.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008264/0.3045, allocations: 0.7461 MB / 404.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.306, allocations: 1.112 MB / 406 MB, free: 8.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.306, allocations: 8.781 kB / 406 MB, free: 8.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002303/0.3084, allocations: 1.294 MB / 407.3 MB, free: 7.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3084, allocations: 12 kB / 407.3 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.3084, allocations: 16.5 kB / 407.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/0.3089, allocations: 146.4 kB / 407.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/0.3097, allocations: 263.5 kB / 407.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003449/0.3132, allocations: 4.317 MB / 412 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009597/0.3142, allocations: 71.94 kB / 412.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.157e-05/0.3143, allocations: 52 kB / 412.2 MB, free: 2.457 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.0006131/0.3149, allocations: 365.3 kB / 412.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.3151, allocations: 138.3 kB / 412.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.3168, allocations: 0.8647 MB / 413.5 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.3169, allocations: 8 kB / 413.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3169, allocations: 0 / 413.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.3169, allocations: 4.125 kB / 413.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00363/0.3205, allocations: 2.381 MB / 415.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.3205, allocations: 8.016 kB / 415.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005529/0.3211, allocations: 131.9 kB / 416 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004204/0.3215, allocations: 142.5 kB / 416.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.159e-05/0.3216, allocations: 23.98 kB / 416.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.3253, allocations: 4.444 MB / 420.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.3253, allocations: 4 kB / 420.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.3276, allocations: 1.356 MB / 422 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/0.3281, allocations: 279.4 kB / 422.3 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/0.3283, allocations: 20.17 kB / 422.3 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.329, allocations: 55.91 kB / 422.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.3291, allocations: 64.36 kB / 422.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-05/0.3292, allocations: 20 kB / 422.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001272/0.3304, allocations: 0.882 MB / 423.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3305, allocations: 0 / 423.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001207/0.3317, allocations: 328 kB / 423.6 MB, free: 6.332 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.0002256/0.3319, allocations: 131 kB / 423.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.3338, allocations: 1.137 MB / 424.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.3338, allocations: 3.938 kB / 424.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009873/0.3348, allocations: 0.7188 MB / 425.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.3371, allocations: 346.4 kB / 426 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.343, allocations: 3.809 MB / 429.8 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009424/0.344, allocations: 1.221 MB / 431 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.3443, allocations: 99.42 kB / 431.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3443, allocations: 0 / 431.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of Templates: time 0.04218/0.3865, allocations: 40.63 MB / 471.7 MB, free: 6.109 MB / 382.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