Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001618/0.001618, allocations: 118.5 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002034/0.002034, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2857, allocations: 50.54 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.008929/0.2946, allocations: 7.995 MB / 416.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004374/0.2991, allocations: 2.64 MB / 419.4 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006028/0.2997, allocations: 23.94 kB / 419.4 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.301, allocations: 0.5282 MB / 419.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009903/0.302, allocations: 432.8 kB / 420.4 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.3025, allocations: 219.7 kB / 420.6 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.3037, allocations: 1.233 MB / 421.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007341/0.3044, allocations: 0.5409 MB / 422.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006255/0.3051, allocations: 490.1 kB / 422.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005431/0.3056, allocations: 0.5172 MB / 423.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.3058, allocations: 116 kB / 423.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002724/0.306, allocations: 156 kB / 423.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.3062, allocations: 231.1 kB / 423.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004588/0.3067, allocations: 0.5677 MB / 424.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00146/0.3082, allocations: 1.475 MB / 425.9 MB, free: 344 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3082, allocations: 7.938 kB / 425.9 MB, free: 336 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3082, allocations: 0 / 425.9 MB, free: 336 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.3082, allocations: 0 / 425.9 MB, free: 336 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002182/0.3104, allocations: 1.327 MB / 427.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.3105, allocations: 8.031 kB / 427.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001573/0.3106, allocations: 135.5 kB / 427.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006938/0.3113, allocations: 180.2 kB / 427.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.3123, allocations: 0.6498 MB / 428.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.3124, allocations: 62.12 kB / 428.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3125, allocations: 87.94 kB / 428.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.3139, allocations: 0.8184 MB / 429.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.535e-05/0.3139, allocations: 11.89 kB / 429.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.59e-05/0.314, allocations: 32 kB / 429.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.314, allocations: 31.98 kB / 429.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.3151, allocations: 0.5387 MB / 429.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004049/0.3191, allocations: 3.556 MB / 433.3 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/0.3196, allocations: 250.7 kB / 433.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.3199, allocations: 112.8 kB / 433.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.3199, allocations: 0 / 433.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.32, allocations: 38.56 kB / 433.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.383e-06/0.32, allocations: 0 / 433.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002044/0.322, allocations: 1.098 MB / 434.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.3221, allocations: 85.05 kB / 434.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009264/0.323, allocations: 0.7702 MB / 435.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.3231, allocations: 33.7 kB / 435.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003137/0.3234, allocations: 0.5228 MB / 436.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.096e-05/0.3235, allocations: 111.1 kB / 436.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.3236, allocations: 122.2 kB / 436.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3238, allocations: 382.8 kB / 436.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.324, allocations: 129.2 kB / 436.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000453/0.3245, allocations: 446.2 kB / 437.4 MB, free: 4.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007633/0.3253, allocations: 0.6215 MB / 438 MB, free: 3.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3253, allocations: 0 / 438 MB, free: 3.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001068/0.3264, allocations: 0.6508 MB / 438.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.3264, allocations: 12.06 kB / 438.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.3264, allocations: 16 kB / 438.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.3266, allocations: 36.84 kB / 438.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.3271, allocations: 147.7 kB / 438.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/0.3282, allocations: 1.394 MB / 440.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.3287, allocations: 39.94 kB / 440.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.3287, allocations: 36.09 kB / 440.3 MB, free: 0.9219 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003264/0.3291, allocations: 249.3 kB / 440.6 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3292, allocations: 79.48 kB / 440.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006636/0.3298, allocations: 333.9 kB / 441 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3299, allocations: 8 kB / 441 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3299, allocations: 3.938 kB / 441 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3299, allocations: 3.984 kB / 441 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.3314, allocations: 1.12 MB / 442.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3315, allocations: 4 kB / 442.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.3317, allocations: 55.97 kB / 442.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-05/0.3318, allocations: 24.78 kB / 442.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.3318, allocations: 8 kB / 442.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000845/0.3327, allocations: 1.375 MB / 443.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3327, allocations: 8.062 kB / 443.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000858/0.3336, allocations: 0.5761 MB / 444.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.3338, allocations: 176.5 kB / 444.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.26e-05/0.3339, allocations: 8 kB / 444.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.3342, allocations: 23.97 kB / 444.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.3343, allocations: 27.97 kB / 444.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3343, allocations: 12 kB / 444.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006341/0.335, allocations: 0.5185 MB / 444.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.335, allocations: 0 / 444.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006078/0.3356, allocations: 175.9 kB / 445.1 MB, free: 11.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001252/0.3368, allocations: 1.134 MB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008645/0.3377, allocations: 484.5 kB / 446.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.3377, allocations: 4 kB / 446.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.3381, allocations: 238.4 kB / 446.9 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008967/0.339, allocations: 195.4 kB / 447.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008219/0.3472, allocations: 6.523 MB / 453.7 MB, free: 2.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.3478, allocations: 0.9526 MB / 454.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003169/0.3481, allocations: 90.17 kB / 454.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.3485, allocations: 315.3 kB / 455 MB, free: 1.402 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3485, allocations: 0 / 455 MB, free: 1.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04478/0.3933, allocations: 16.07 MB / 471.1 MB, free: 1.594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.1, allocations: 8.062 kB / 471.1 MB, free: 1.586 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches