Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009959/0.000996, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0011/0.0011, allocations: 182 kB / 17.56 MB, free: 6.203 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.383/1.383, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003651/0.0003651, allocations: 8 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 50.42 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01108/0.1118, allocations: 11.07 MB / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005589/0.1174, allocations: 3.18 MB / 366.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/0.1189, allocations: 31.94 kB / 366.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.1207, allocations: 0.5554 MB / 366.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002033/0.1227, allocations: 0.5857 MB / 367.3 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007531/0.1235, allocations: 343.7 kB / 367.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002057/0.1256, allocations: 2.129 MB / 369.7 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.1266, allocations: 0.8385 MB / 370.6 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007537/0.1274, allocations: 0.6881 MB / 371.3 MB, free: 160 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1754/0.3028, allocations: 0.7765 MB / 372 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000521/0.3034, allocations: 101.3 kB / 372.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006094/0.304, allocations: 139.5 kB / 372.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000313/0.3043, allocations: 301.9 kB / 372.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009882/0.3053, allocations: 0.9069 MB / 373.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002975/0.3083, allocations: 2.507 MB / 376 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3083, allocations: 2.844 kB / 376 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3083, allocations: 0 / 376 MB, free: 11.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.04e-05/0.3084, allocations: 0 / 376 MB, free: 11.67 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003223/0.3116, allocations: 1.757 MB / 377.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3116, allocations: 10.12 kB / 377.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008146/0.3125, allocations: 259.9 kB / 378 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.314, allocations: 1.028 MB / 379 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.3142, allocations: 115.4 kB / 379.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.3144, allocations: 160.4 kB / 379.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.3172, allocations: 1.505 MB / 380.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.14e-05/0.3173, allocations: 2.5 kB / 380.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.3174, allocations: 63.69 kB / 380.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.831e-05/0.3174, allocations: 38.5 kB / 380.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.3193, allocations: 0.9858 MB / 381.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007381/0.3267, allocations: 6.595 MB / 388.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008745/0.3276, allocations: 407.7 kB / 388.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004244/0.3281, allocations: 229.5 kB / 389.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.3281, allocations: 5.969 kB / 389.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005127/0.3286, allocations: 273.7 kB / 389.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.825e-06/0.3287, allocations: 4 kB / 389.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003431/0.3321, allocations: 1.79 MB / 391.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/0.3322, allocations: 170.2 kB / 391.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.334, allocations: 1.271 MB / 392.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.334, allocations: 35.73 kB / 392.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005134/0.3346, allocations: 0.8705 MB / 393.5 MB, free: 2.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.3347, allocations: 205.9 kB / 393.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.3348, allocations: 95.41 kB / 393.8 MB, free: 2.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.364e-05/0.3349, allocations: 351.7 kB / 394.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/0.3353, allocations: 242.2 kB / 394.4 MB, free: 1.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.336, allocations: 0.8108 MB / 395.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.3371, allocations: 1.127 MB / 396.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.3371, allocations: 5.562 kB / 396.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002031/0.3392, allocations: 1.181 MB / 397.5 MB, free: 15.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.916e-05/0.3392, allocations: 46.98 kB / 397.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/0.3393, allocations: 18.72 kB / 397.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002466/0.3395, allocations: 69.12 kB / 397.6 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008061/0.3403, allocations: 265.4 kB / 397.9 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002001/0.3424, allocations: 2.578 MB / 400.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.3435, allocations: 79.75 kB / 400.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.84e-05/0.3436, allocations: 58.88 kB / 400.6 MB, free: 12.61 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006903/0.3443, allocations: 355.4 kB / 401 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.3445, allocations: 137.5 kB / 401.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.3456, allocations: 0.5556 MB / 401.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.3456, allocations: 6 kB / 401.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3456, allocations: 3.938 kB / 401.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3456, allocations: 4.078 kB / 401.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.3486, allocations: 1.886 MB / 403.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.3487, allocations: 7.5 kB / 403.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004232/0.3491, allocations: 109 kB / 403.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001537/0.3493, allocations: 43.14 kB / 403.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.3493, allocations: 14.09 kB / 403.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.3512, allocations: 2.557 MB / 406.3 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.3512, allocations: 10.44 kB / 406.3 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.3526, allocations: 0.9419 MB / 407.2 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004477/0.3531, allocations: 260.5 kB / 407.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.3532, allocations: 18.17 kB / 407.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005389/0.3538, allocations: 36.14 kB / 407.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3539, allocations: 54.22 kB / 407.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.3539, allocations: 25.11 kB / 407.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.3552, allocations: 0.843 MB / 408.5 MB, free: 6.488 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.283e-06/0.3552, allocations: 4 kB / 408.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001226/0.3564, allocations: 312.2 kB / 408.8 MB, free: 6.453 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002111/0.3566, allocations: 131.7 kB / 408.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.3581, allocations: 0.9384 MB / 409.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3581, allocations: 0 / 409.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000685/0.3588, allocations: 479.6 kB / 410.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.361, allocations: 314.2 kB / 410.6 MB, free: 4.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004795/0.3658, allocations: 3.25 MB / 413.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008402/0.3667, allocations: 1.178 MB / 415 MB, free: 252 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006582/0.3673, allocations: 183.2 kB / 415.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.3675, allocations: 83.48 kB / 415.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3675, allocations: 0 / 415.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Templates: time 0.02824/0.3958, allocations: 14.14 MB / 429.4 MB, free: 2.035 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches