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.00107/0.00107, allocations: 97.33 kB / 16.3 MB, free: 5.578 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.001122/0.001122, allocations: 182.3 kB / 17.2 MB, free: 5.512 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.315/1.315, allocations: 223.2 MB / 241.1 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.000264, allocations: 9.906 kB / 300.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09538/0.09566, allocations: 50.41 MB / 351.1 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009618/0.1053, allocations: 9.326 MB / 360.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00546/0.1109, allocations: 3.159 MB / 363.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009211/0.1118, allocations: 35.88 kB / 363.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.1132, allocations: 0.5091 MB / 364.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.1148, allocations: 0.7128 MB / 364.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006453/0.1154, allocations: 243.7 kB / 365.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002095/0.1175, allocations: 1.545 MB / 366.7 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008454/0.1184, allocations: 0.6752 MB / 367.3 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006865/0.1191, allocations: 0.6381 MB / 368 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006779/0.1198, allocations: 0.7194 MB / 368.7 MB, free: 2.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001308/0.1199, allocations: 92 kB / 368.8 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003054/0.1202, allocations: 140 kB / 368.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.1204, allocations: 270.8 kB / 369.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002876/0.1207, allocations: 384.8 kB / 369.6 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1651/0.2859, allocations: 2.042 MB / 371.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2859, allocations: 3.828 kB / 371.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2859, allocations: 0 / 371.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.774e-05/0.286, allocations: 1.125 kB / 371.6 MB, free: 12.39 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.003174/0.2892, allocations: 1.758 MB / 373.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2892, allocations: 9.469 kB / 373.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006901/0.2899, allocations: 242.2 kB / 373.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001574/0.2915, allocations: 1.012 MB / 374.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.768e-05/0.2916, allocations: 114.3 kB / 374.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002494/0.2919, allocations: 159.3 kB / 374.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.2943, allocations: 1.464 MB / 376.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.448e-05/0.2944, allocations: 12.88 kB / 376.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.2945, allocations: 68.83 kB / 376.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-05/0.2945, allocations: 42.23 kB / 376.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.2963, allocations: 0.9683 MB / 377.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007356/0.3037, allocations: 6.519 MB / 384 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007425/0.3044, allocations: 401.1 kB / 384.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.3045, allocations: 7.391 kB / 384.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005233/0.305, allocations: 275.3 kB / 384.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.984e-06/0.305, allocations: 0 / 384.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003092/0.3081, allocations: 1.78 MB / 386.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.3082, allocations: 172.5 kB / 386.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.3097, allocations: 1.188 MB / 387.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.3097, allocations: 40.02 kB / 387.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005082/0.3103, allocations: 0.8693 MB / 388.7 MB, free: 5.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/0.3104, allocations: 208.7 kB / 388.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.3104, allocations: 20.28 kB / 388.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.95e-05/0.3105, allocations: 351.1 kB / 389.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.3109, allocations: 232.1 kB / 389.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/0.3115, allocations: 0.7934 MB / 390.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005721/0.3121, allocations: 403.4 kB / 390.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.3121, allocations: 6 kB / 390.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001834/0.314, allocations: 1.175 MB / 391.8 MB, free: 4.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.314, allocations: 40.08 kB / 391.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/0.3141, allocations: 23.23 kB / 391.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002262/0.3143, allocations: 67.84 kB / 392 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007745/0.3151, allocations: 267.2 kB / 392.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.3164, allocations: 2.594 MB / 394.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.3175, allocations: 74.06 kB / 394.9 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.803e-05/0.3176, allocations: 61.34 kB / 395 MB, free: 1.797 MB / 302.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006511/0.3182, allocations: 358.7 kB / 395.3 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.3184, allocations: 132.7 kB / 395.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009833/0.3194, allocations: 0.5616 MB / 396 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3194, allocations: 5.375 kB / 396 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3194, allocations: 1.75 kB / 396 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.3194, allocations: 3.984 kB / 396 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.3218, allocations: 1.822 MB / 397.8 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.3218, allocations: 4.219 kB / 397.8 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.3222, allocations: 105.1 kB / 397.9 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/0.3224, allocations: 49.09 kB / 398 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.3224, allocations: 19.5 kB / 398 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.3241, allocations: 2.56 MB / 400.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.3241, allocations: 7.953 kB / 400.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.3256, allocations: 1.128 MB / 401.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004429/0.326, allocations: 242.4 kB / 401.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.3262, allocations: 18.31 kB / 402 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004962/0.3267, allocations: 32.28 kB / 402 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.3268, allocations: 56.45 kB / 402 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.3269, allocations: 18.34 kB / 402.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.3279, allocations: 0.7836 MB / 402.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3279, allocations: 0 / 402.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001171/0.3291, allocations: 302.8 kB / 403.1 MB, free: 11.88 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002194/0.3293, allocations: 138.6 kB / 403.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.3307, allocations: 0.9278 MB / 404.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3307, allocations: 3.531 kB / 404.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005939/0.3313, allocations: 468.3 kB / 404.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.3325, allocations: 305.5 kB / 405 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.3364, allocations: 3.059 MB / 408 MB, free: 8.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007032/0.3371, allocations: 1.213 MB / 409.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006588/0.3378, allocations: 179.1 kB / 409.4 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.3379, allocations: 83.44 kB / 409.5 MB, free: 7.004 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3379, allocations: 0 / 409.5 MB, free: 7.004 MB / 318.1 MB Notification: Performance of Templates: time 0.02374/0.3617, allocations: 12.92 MB / 422.4 MB, free: 10.3 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","../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