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.001219/0.001219, allocations: 109.6 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 209.8 kB / 18.27 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 60.38 kB / 306.4 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.121, allocations: 50.53 MB / 357 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01295/0.134, allocations: 12.08 MB / 369.1 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1841/0.3181, allocations: 3.257 MB / 372.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.3196, allocations: 36.44 kB / 372.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001694/0.3213, allocations: 0.5796 MB / 372.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001483/0.3228, allocations: 0.6254 MB / 373.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005937/0.3234, allocations: 355.9 kB / 373.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002018/0.3255, allocations: 2.397 MB / 376.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001143/0.3266, allocations: 0.9935 MB / 377.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.3278, allocations: 0.919 MB / 378.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008736/0.3287, allocations: 0.982 MB / 379.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002715/0.329, allocations: 229.5 kB / 379.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004558/0.3295, allocations: 267.1 kB / 379.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002877/0.3298, allocations: 455.8 kB / 380.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007839/0.3305, allocations: 1.078 MB / 381.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002762/0.3333, allocations: 2.797 MB / 384 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3333, allocations: 0 / 384 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3333, allocations: 0 / 384 MB, free: 7.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.349e-05/0.3334, allocations: 4 kB / 384 MB, free: 7.129 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.003369/0.3368, allocations: 2.148 MB / 386.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3368, allocations: 9.156 kB / 386.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008754/0.3377, allocations: 287.6 kB / 386.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.3391, allocations: 1.111 MB / 387.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.402e-05/0.3392, allocations: 112.7 kB / 387.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002024/0.3394, allocations: 165.1 kB / 387.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.3418, allocations: 1.507 MB / 389.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/0.3418, allocations: 11.66 kB / 389.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.342, allocations: 66.75 kB / 389.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.98e-05/0.342, allocations: 41.98 kB / 389.4 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.3439, allocations: 1.047 MB / 390.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006694/0.3506, allocations: 6.289 MB / 396.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.3522, allocations: 0.6121 MB / 397.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009162/0.3531, allocations: 470.6 kB / 397.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.3532, allocations: 8.219 kB / 397.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.3532, allocations: 42.34 kB / 397.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.034e-06/0.3532, allocations: 0 / 397.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004839/0.3581, allocations: 2.371 MB / 400.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/0.3582, allocations: 109.9 kB / 400.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.3598, allocations: 1.303 MB / 401.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.3598, allocations: 40.67 kB / 401.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000565/0.3604, allocations: 0.8468 MB / 402.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.3606, allocations: 258.5 kB / 402.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.3609, allocations: 204.4 kB / 403 MB, free: 10.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.361, allocations: 354.5 kB / 403.4 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005344/0.3616, allocations: 281.3 kB / 403.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009332/0.3625, allocations: 0.7412 MB / 404.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.364, allocations: 1.088 MB / 405.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.364, allocations: 4 kB / 405.5 MB, free: 8.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002336/0.3664, allocations: 1.26 MB / 406.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3664, allocations: 12 kB / 406.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.3665, allocations: 20 kB / 406.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004753/0.3669, allocations: 134.5 kB / 406.9 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000791/0.3677, allocations: 259.6 kB / 407.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003997/0.3718, allocations: 4.626 MB / 411.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.3728, allocations: 59.88 kB / 411.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.831e-05/0.3729, allocations: 60.12 kB / 411.9 MB, free: 1.223 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.0006497/0.3735, allocations: 373.2 kB / 412.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.3738, allocations: 134.3 kB / 412.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.3755, allocations: 0.8256 MB / 413.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.3756, allocations: 8 kB / 413.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3756, allocations: 7.938 kB / 413.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3756, allocations: 7.984 kB / 413.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003841/0.3794, allocations: 2.329 MB / 415.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.3795, allocations: 8.094 kB / 415.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.3801, allocations: 127.8 kB / 415.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.3805, allocations: 141 kB / 415.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.3806, allocations: 19.94 kB / 415.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004354/0.3849, allocations: 4.785 MB / 420.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3849, allocations: 11.98 kB / 420.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002523/0.3875, allocations: 1.295 MB / 422 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007279/0.3882, allocations: 279.3 kB / 422.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.3884, allocations: 27.92 kB / 422.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000657/0.3891, allocations: 35.97 kB / 422.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3892, allocations: 68.36 kB / 422.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-05/0.3893, allocations: 24 kB / 422.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.3905, allocations: 0.8742 MB / 423.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3905, allocations: 0 / 423.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001305/0.3918, allocations: 328 kB / 423.6 MB, free: 4.891 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.0002608/0.3921, allocations: 139.7 kB / 423.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002154/0.3943, allocations: 1.14 MB / 424.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3943, allocations: 0 / 424.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3953, allocations: 0.716 MB / 425.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.3971, allocations: 369.2 kB / 425.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.4026, allocations: 3.586 MB / 429.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000807/0.4035, allocations: 1.21 MB / 430.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008069/0.4043, allocations: 171.6 kB / 430.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.4045, allocations: 95.42 kB / 431 MB, free: 13.31 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4045, allocations: 0 / 431 MB, free: 13.31 MB / 350.1 MB Notification: Performance of Templates: time 0.03475/0.4393, allocations: 17.54 MB / 448.5 MB, free: 11.97 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.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