Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 104.2 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001666/0.001667, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009544/0.0009546, allocations: 47.22 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08939, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01262/0.1021, allocations: 12.15 MB / 362.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006019/0.1081, allocations: 3.276 MB / 366.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.1097, allocations: 35.94 kB / 366.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.1117, allocations: 0.6711 MB / 366.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002401/0.1141, allocations: 0.7209 MB / 367.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.1152, allocations: 403.5 kB / 368 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003178/0.1184, allocations: 2.397 MB / 370.4 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1638/0.2822, allocations: 0.9861 MB / 371.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.2838, allocations: 0.8994 MB / 372.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.285, allocations: 0.9779 MB / 373.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003577/0.2853, allocations: 233.7 kB / 373.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006475/0.286, allocations: 274.7 kB / 373.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003657/0.2864, allocations: 456 kB / 374.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.2875, allocations: 1.077 MB / 375.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003249/0.2908, allocations: 2.795 MB / 378.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.2908, allocations: 0.6875 kB / 378.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2908, allocations: 1.812 kB / 378.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.486e-05/0.2909, allocations: 3.062 kB / 378.1 MB, free: 10.9 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.004525/0.2954, allocations: 2.155 MB / 380.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.2955, allocations: 8.406 kB / 380.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009705/0.2964, allocations: 280.6 kB / 380.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.2981, allocations: 1.114 MB / 381.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.699e-05/0.2982, allocations: 116.2 kB / 381.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/0.2984, allocations: 163.3 kB / 381.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/0.3008, allocations: 1.503 MB / 383.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.85e-05/0.3008, allocations: 12.83 kB / 383.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.301, allocations: 62.8 kB / 383.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.301, allocations: 37.44 kB / 383.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.3031, allocations: 1.051 MB / 384.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00688/0.31, allocations: 6.285 MB / 390.8 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.3114, allocations: 0.6187 MB / 391.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008592/0.3123, allocations: 455.3 kB / 391.9 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.3124, allocations: 8.031 kB / 391.9 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.3124, allocations: 42.5 kB / 391.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.284e-06/0.3124, allocations: 0 / 391.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004668/0.3171, allocations: 2.362 MB / 394.3 MB, free: 1.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.3171, allocations: 112.9 kB / 394.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.319, allocations: 1.305 MB / 395.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/0.3191, allocations: 41.83 kB / 395.8 MB, free: 1.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.3195, allocations: 0.8457 MB / 396.6 MB, free: 328 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.3196, allocations: 263.5 kB / 396.9 MB, free: 100 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/0.32, allocations: 206.6 kB / 397.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3202, allocations: 355.5 kB / 397.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.3208, allocations: 281 kB / 397.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009912/0.3218, allocations: 0.7363 MB / 398.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.3234, allocations: 1.093 MB / 399.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.3234, allocations: 5.781 kB / 399.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002416/0.3258, allocations: 1.258 MB / 400.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.3259, allocations: 13.16 kB / 400.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.3259, allocations: 19.09 kB / 400.8 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000547/0.3265, allocations: 136.8 kB / 400.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008198/0.3273, allocations: 255.3 kB / 401.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004168/0.3315, allocations: 4.642 MB / 405.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.3329, allocations: 61.12 kB / 405.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.279e-05/0.333, allocations: 52.66 kB / 406 MB, free: 8.496 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.0007201/0.3337, allocations: 360.6 kB / 406.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002305/0.3339, allocations: 140 kB / 406.4 MB, free: 8.164 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.3358, allocations: 0.8284 MB / 407.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3358, allocations: 11.5 kB / 407.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3358, allocations: 0 / 407.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.3359, allocations: 12.06 kB / 407.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004294/0.3402, allocations: 2.329 MB / 409.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.3402, allocations: 7.984 kB / 409.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005838/0.3408, allocations: 127.8 kB / 409.8 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.3413, allocations: 134.5 kB / 409.9 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.633e-05/0.3413, allocations: 19.98 kB / 409.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004394/0.3457, allocations: 4.785 MB / 414.7 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.777e-05/0.3458, allocations: 14.58 kB / 414.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.3484, allocations: 1.298 MB / 416 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006265/0.3491, allocations: 271.4 kB / 416.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.3493, allocations: 27.92 kB / 416.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006576/0.3499, allocations: 35.97 kB / 416.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.3501, allocations: 63.06 kB / 416.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/0.3501, allocations: 27.98 kB / 416.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00142/0.3516, allocations: 0.8742 MB / 417.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3516, allocations: 0 / 417.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001408/0.353, allocations: 328 kB / 417.6 MB, free: 13.01 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.0002875/0.3533, allocations: 147.9 kB / 417.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.3556, allocations: 1.148 MB / 418.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.3557, allocations: 0 / 418.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.3567, allocations: 0.7095 MB / 419.6 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.3587, allocations: 360.8 kB / 420 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006177/0.3649, allocations: 2.992 MB / 423 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007814/0.3657, allocations: 1.214 MB / 424.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.366, allocations: 103.4 kB / 424.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3661, allocations: 0 / 424.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of Templates: time 0.04344/0.4095, allocations: 40.87 MB / 465.1 MB, free: 13.46 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches