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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 101.1 kB / 16.5 MB, free: 6.688 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.001236/0.001236, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.215/1.215, allocations: 222.9 MB / 241.1 MB, free: 13.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009722/0.0009722, allocations: 52.58 kB / 300.1 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.08989, allocations: 49.45 MB / 349.5 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01121/0.1011, allocations: 11.64 MB / 361.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005195/0.1064, allocations: 3.199 MB / 364.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.1077, allocations: 35.94 kB / 364.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.1096, allocations: 0.5554 MB / 365 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001801/0.1114, allocations: 0.5818 MB / 365.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008843/0.1123, allocations: 359.6 kB / 365.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.1147, allocations: 2.124 MB / 368 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.1157, allocations: 0.8502 MB / 368.9 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008874/0.1166, allocations: 0.7544 MB / 369.6 MB, free: 320 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1433/0.26, allocations: 0.8534 MB / 370.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004611/0.2605, allocations: 135.2 kB / 370.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006202/0.2611, allocations: 172.6 kB / 370.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.2614, allocations: 356.9 kB / 371.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009185/0.2623, allocations: 0.9407 MB / 372.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.2647, allocations: 2.576 MB / 374.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2647, allocations: 0 / 374.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2647, allocations: 2.344 kB / 374.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.262e-05/0.2648, allocations: 3.469 kB / 374.6 MB, free: 12.13 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.003389/0.2682, allocations: 2.062 MB / 376.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.2682, allocations: 10.33 kB / 376.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002388/0.2684, allocations: 223.3 kB / 376.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007555/0.2692, allocations: 256.2 kB / 377.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.2706, allocations: 1.024 MB / 378.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.115e-05/0.2707, allocations: 113.9 kB / 378.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.2709, allocations: 156.8 kB / 378.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.2732, allocations: 1.494 MB / 380 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.499e-05/0.2732, allocations: 10.12 kB / 380 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.2733, allocations: 65.44 kB / 380 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.2734, allocations: 38.19 kB / 380.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.275, allocations: 0.9744 MB / 381 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006325/0.2814, allocations: 6.577 MB / 387.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007179/0.2821, allocations: 398.4 kB / 388 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003702/0.2825, allocations: 220 kB / 388.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.2825, allocations: 9.531 kB / 388.2 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004712/0.283, allocations: 267.3 kB / 388.5 MB, free: 5.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.084e-06/0.283, allocations: 0 / 388.5 MB, free: 5.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002904/0.2859, allocations: 1.759 MB / 390.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.286, allocations: 164.7 kB / 390.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.2875, allocations: 1.278 MB / 391.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.2876, allocations: 40.98 kB / 391.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004552/0.288, allocations: 0.8678 MB / 392.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.2881, allocations: 205.5 kB / 392.8 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.2884, allocations: 221 kB / 393 MB, free: 1.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.2884, allocations: 355.5 kB / 393.4 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.2889, allocations: 224.3 kB / 393.6 MB, free: 1.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005617/0.2894, allocations: 0.8083 MB / 394.4 MB, free: 460 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.2905, allocations: 1.109 MB / 395.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.2905, allocations: 9.844 kB / 395.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001701/0.2923, allocations: 1.17 MB / 396.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.2923, allocations: 42.03 kB / 396.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.2923, allocations: 22.84 kB / 396.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/0.2926, allocations: 68.27 kB / 396.8 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007152/0.2933, allocations: 273 kB / 397.1 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.2949, allocations: 2.575 MB / 399.7 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009964/0.2959, allocations: 70.69 kB / 399.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.598e-05/0.296, allocations: 58.88 kB / 399.8 MB, free: 12.13 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.0005654/0.2966, allocations: 359.9 kB / 400.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/0.2968, allocations: 129.7 kB / 400.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.2978, allocations: 0.5485 MB / 400.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.2979, allocations: 6.344 kB / 400.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2979, allocations: 5.031 kB / 400.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2979, allocations: 7.984 kB / 400.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.3007, allocations: 1.874 MB / 402.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3007, allocations: 3.625 kB / 402.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004171/0.3011, allocations: 106.4 kB / 402.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.3012, allocations: 43.27 kB / 402.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.3013, allocations: 19.45 kB / 402.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.3028, allocations: 2.547 MB / 405.4 MB, free: 7.422 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3028, allocations: 6.781 kB / 405.4 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3041, allocations: 0.9276 MB / 406.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.3046, allocations: 264.4 kB / 406.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.3048, allocations: 16.41 kB / 406.6 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005885/0.3054, allocations: 35.62 kB / 406.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.978e-05/0.3055, allocations: 46.88 kB / 406.7 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.3056, allocations: 24.69 kB / 406.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.3067, allocations: 0.8485 MB / 407.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3067, allocations: 0 / 407.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001145/0.3079, allocations: 303.3 kB / 407.9 MB, free: 5.996 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.001595/0.3095, allocations: 1.506 MB / 409.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.3108, allocations: 0.9224 MB / 410.3 MB, free: 4.086 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3109, allocations: 0 / 410.3 MB, free: 4.086 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006392/0.3115, allocations: 473.9 kB / 410.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.313, allocations: 304.8 kB / 411.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/0.3306, allocations: 12.76 MB / 423.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007355/0.3313, allocations: 1.178 MB / 425 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006515/0.332, allocations: 171.3 kB / 425.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000628/0.3326, allocations: 0.5696 MB / 425.7 MB, free: 3.477 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3326, allocations: 0 / 425.7 MB, free: 3.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9081/1.241, allocations: 26.32 MB / 452.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/1.241, allocations: 244.2 kB / 452.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.242/3.483, allocations: 0 / 452.3 MB, free: 9.285 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/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