Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 107.4 kB / 17.06 MB, free: 5.82 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.001467/0.001467, allocations: 195.9 kB / 18 MB, free: 4.965 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 51.91 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2979, allocations: 49.43 MB / 400.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01033/0.3083, allocations: 7.959 MB / 408.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005068/0.3134, allocations: 2.624 MB / 410.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009437/0.3144, allocations: 20 kB / 410.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.3159, allocations: 0.5008 MB / 411.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.3171, allocations: 404.8 kB / 411.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.3177, allocations: 215.6 kB / 412 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001541/0.3192, allocations: 1.222 MB / 413.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007917/0.32, allocations: 0.5409 MB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007983/0.3208, allocations: 486.1 kB / 414.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006976/0.3215, allocations: 0.5172 MB / 414.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.3217, allocations: 116 kB / 414.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003148/0.322, allocations: 152 kB / 415 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.3222, allocations: 235.1 kB / 415.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005264/0.3227, allocations: 0.5638 MB / 415.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.3244, allocations: 1.467 MB / 417.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.3245, allocations: 0 / 417.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3245, allocations: 3.938 kB / 417.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.3245, allocations: 0 / 417.2 MB, free: 7.762 MB / 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.002234/0.3267, allocations: 1.331 MB / 418.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3268, allocations: 8.031 kB / 418.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.3269, allocations: 135.4 kB / 418.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004766/0.3274, allocations: 156.2 kB / 418.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.3285, allocations: 0.646 MB / 419.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/0.3286, allocations: 66.12 kB / 419.6 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3287, allocations: 91.89 kB / 419.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.3301, allocations: 0.8223 MB / 420.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/0.3302, allocations: 3.938 kB / 420.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.895e-05/0.3302, allocations: 36 kB / 420.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.3303, allocations: 28 kB / 420.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.3314, allocations: 0.5387 MB / 421.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004438/0.3358, allocations: 3.563 MB / 424.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.3364, allocations: 246.7 kB / 424.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.3367, allocations: 112.8 kB / 425 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.3367, allocations: 0 / 425 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3367, allocations: 38.56 kB / 425 MB, free: 15.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.342e-06/0.3367, allocations: 0 / 425 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002235/0.339, allocations: 1.088 MB / 426.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.3391, allocations: 85.05 kB / 426.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009851/0.3401, allocations: 0.7586 MB / 427 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.3401, allocations: 33.7 kB / 427 MB, free: 13.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/0.3405, allocations: 0.5267 MB / 427.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.495e-05/0.3406, allocations: 119 kB / 427.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.3408, allocations: 122.2 kB / 427.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.341, allocations: 386.7 kB / 428.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.3413, allocations: 129.2 kB / 428.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/0.3419, allocations: 454.2 kB / 428.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008804/0.3428, allocations: 0.614 MB / 429.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3428, allocations: 0 / 429.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001209/0.344, allocations: 0.6505 MB / 430 MB, free: 10.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.344, allocations: 11.94 kB / 430 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.344, allocations: 16.12 kB / 430 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.3442, allocations: 32.84 kB / 430 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.3447, allocations: 151.7 kB / 430.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.3459, allocations: 1.39 MB / 431.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004605/0.3464, allocations: 39.94 kB / 431.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.3464, allocations: 36.09 kB / 431.7 MB, free: 8.375 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.0003303/0.3468, allocations: 241.5 kB / 431.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3469, allocations: 79.48 kB / 432 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006963/0.3476, allocations: 337.8 kB / 432.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.3476, allocations: 8 kB / 432.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3476, allocations: 3.938 kB / 432.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.3476, allocations: 3.984 kB / 432.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.3493, allocations: 1.115 MB / 433.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3493, allocations: 4 kB / 433.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.3496, allocations: 59.97 kB / 433.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.293e-05/0.3497, allocations: 20.78 kB / 433.5 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.3498, allocations: 8 kB / 433.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/0.3508, allocations: 1.375 MB / 434.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3508, allocations: 8.062 kB / 434.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009581/0.3518, allocations: 0.5811 MB / 435.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.352, allocations: 180.6 kB / 435.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.894e-05/0.3521, allocations: 8 kB / 435.7 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/0.3524, allocations: 19.97 kB / 435.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.168e-05/0.3525, allocations: 23.98 kB / 435.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.3525, allocations: 15.98 kB / 435.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006912/0.3532, allocations: 0.5185 MB / 436.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.865e-06/0.3533, allocations: 0 / 436.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006748/0.3539, allocations: 175.9 kB / 436.4 MB, free: 3.309 MB / 350.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.001363/0.3553, allocations: 1.137 MB / 437.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009877/0.3563, allocations: 494.9 kB / 438 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3563, allocations: 0 / 438 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003965/0.3567, allocations: 242.5 kB / 438.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009204/0.3576, allocations: 194.8 kB / 438.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009217/0.3669, allocations: 6.52 MB / 445 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006268/0.3675, allocations: 0.9565 MB / 445.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003496/0.3679, allocations: 90.17 kB / 446 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.3683, allocations: 315.3 kB / 446.3 MB, free: 8.848 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3683, allocations: 0 / 446.3 MB, free: 8.848 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05059/0.4189, allocations: 16.06 MB / 462.4 MB, free: 9.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.55, allocations: 4 kB / 462.4 MB, free: 9.074 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches