Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00118/0.00118, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.4 MB, free: 9.117 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 66.02 kB / 306.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09598, allocations: 50.52 MB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01204/0.1081, allocations: 11.67 MB / 368.8 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1541/0.2622, allocations: 3.217 MB / 372 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.2641, allocations: 37.09 kB / 372 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002421/0.2666, allocations: 0.557 MB / 372.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002219/0.2689, allocations: 0.5809 MB / 373.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.27, allocations: 352.5 kB / 373.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002893/0.2729, allocations: 2.238 MB / 375.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001379/0.2742, allocations: 0.991 MB / 376.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.2757, allocations: 0.8481 MB / 377.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009131/0.2766, allocations: 0.9075 MB / 378.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002582/0.2768, allocations: 220.6 kB / 378.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004497/0.2773, allocations: 260.8 kB / 379 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.2776, allocations: 430.5 kB / 379.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007695/0.2783, allocations: 1.012 MB / 380.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002503/0.2808, allocations: 2.647 MB / 383 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2809, allocations: 0.5625 kB / 383 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2809, allocations: 1.375 kB / 383 MB, free: 7.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.005e-05/0.2809, allocations: 3.938 kB / 383 MB, free: 7.535 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.003305/0.2842, allocations: 2.068 MB / 385.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2843, allocations: 10.22 kB / 385.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002416/0.2845, allocations: 224.5 kB / 385.3 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008062/0.2853, allocations: 255.8 kB / 385.6 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.2867, allocations: 1.026 MB / 386.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.557e-05/0.2868, allocations: 112.9 kB / 386.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/0.287, allocations: 164.8 kB / 386.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.2893, allocations: 1.489 MB / 388.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.824e-05/0.2894, allocations: 10.25 kB / 388.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.2895, allocations: 62.59 kB / 388.4 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.463e-05/0.2895, allocations: 38.16 kB / 388.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.2913, allocations: 0.979 MB / 389.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006846/0.2981, allocations: 6.575 MB / 396 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007711/0.2989, allocations: 395.9 kB / 396.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004172/0.2993, allocations: 219.4 kB / 396.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.2994, allocations: 10.06 kB / 396.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005466/0.2999, allocations: 272.9 kB / 396.9 MB, free: 14.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.354e-06/0.2999, allocations: 0 / 396.9 MB, free: 14.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003269/0.3032, allocations: 1.76 MB / 398.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/0.3033, allocations: 169 kB / 398.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.305, allocations: 1.27 MB / 400.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.3051, allocations: 41.92 kB / 400.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006485/0.3057, allocations: 0.8732 MB / 401 MB, free: 11.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3059, allocations: 210 kB / 401.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.3061, allocations: 215.5 kB / 401.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3063, allocations: 357.1 kB / 401.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004362/0.3067, allocations: 233 kB / 402 MB, free: 10.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007781/0.3075, allocations: 0.8033 MB / 402.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.3088, allocations: 1.118 MB / 403.9 MB, free: 8.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.3088, allocations: 9.844 kB / 403.9 MB, free: 8.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001703/0.3105, allocations: 1.164 MB / 405.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.245e-05/0.3105, allocations: 45.58 kB / 405.1 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.3106, allocations: 19.78 kB / 405.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002005/0.3108, allocations: 68.48 kB / 405.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007095/0.3115, allocations: 266.2 kB / 405.5 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.3133, allocations: 2.771 MB / 408.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008686/0.3142, allocations: 72.34 kB / 408.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.3143, allocations: 59.84 kB / 408.4 MB, free: 4.664 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.0004588/0.3148, allocations: 366 kB / 408.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.3149, allocations: 134.3 kB / 408.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009909/0.3159, allocations: 0.5489 MB / 409.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.316, allocations: 11.98 kB / 409.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.316, allocations: 0 / 409.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.316, allocations: 0 / 409.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002582/0.3186, allocations: 1.877 MB / 411.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3186, allocations: 8.047 kB / 411.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004162/0.319, allocations: 103.8 kB / 411.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001335/0.3191, allocations: 45.69 kB / 411.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.281e-05/0.3192, allocations: 16 kB / 411.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.321, allocations: 2.738 MB / 414.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.321, allocations: 7.938 kB / 414.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.3223, allocations: 0.9188 MB / 415.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003995/0.3228, allocations: 267.3 kB / 415.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.3229, allocations: 16 kB / 415.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005366/0.3235, allocations: 35.97 kB / 415.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.3236, allocations: 55.77 kB / 415.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.3236, allocations: 23.98 kB / 415.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00113/0.3247, allocations: 0.8422 MB / 416.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3248, allocations: 0 / 416.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001144/0.3259, allocations: 308 kB / 416.7 MB, free: 11.87 MB / 334.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.001783/0.3277, allocations: 1.5 MB / 418.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.3293, allocations: 0.9497 MB / 419.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3294, allocations: 3.938 kB / 419.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000649/0.33, allocations: 468.8 kB / 419.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.3315, allocations: 335.7 kB / 419.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.3497, allocations: 12.74 MB / 432.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007605/0.3504, allocations: 1.181 MB / 433.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006515/0.3511, allocations: 175.3 kB / 434 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006133/0.3517, allocations: 0.5696 MB / 434.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3517, allocations: 0 / 434.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06486/0.4166, allocations: 27 MB / 461.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.4168, allocations: 243.2 kB / 461.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.475/2.892, allocations: 0 / 461.8 MB, free: 13.68 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches