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.001532/0.001532, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001787/0.001787, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.298/1.298, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009676/0.0009677, allocations: 51.02 kB / 300.7 MB, free: 5.738 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08347/0.08445, allocations: 49.44 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.008823/0.09331, allocations: 7.954 MB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004281/0.09763, allocations: 2.633 MB / 360.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006254/0.09829, allocations: 23.94 kB / 360.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.09967, allocations: 0.4892 MB / 361.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008587/0.1005, allocations: 400.8 kB / 361.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.101, allocations: 223.6 kB / 361.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1021, allocations: 1.225 MB / 363.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007181/0.1029, allocations: 0.537 MB / 363.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006671/0.1035, allocations: 486.1 kB / 364.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006031/0.1042, allocations: 0.5095 MB / 364.6 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1043, allocations: 116 kB / 364.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003021/0.1046, allocations: 152 kB / 364.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.1048, allocations: 239.1 kB / 365.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004755/0.1053, allocations: 0.5676 MB / 365.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.1065, allocations: 1.437 MB / 367.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1065, allocations: 0 / 367.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1066, allocations: 4 kB / 367.1 MB, free: 3.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.1066, allocations: 0 / 367.1 MB, free: 3.23 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002105/0.1087, allocations: 1.313 MB / 368.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1087, allocations: 8.031 kB / 368.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.1089, allocations: 135.4 kB / 368.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004764/0.1093, allocations: 147.6 kB / 368.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008577/0.1102, allocations: 0.6338 MB / 369.4 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.1103, allocations: 70.12 kB / 369.4 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.1104, allocations: 83.91 kB / 369.5 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1279/0.2383, allocations: 0.8118 MB / 370.3 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.365e-05/0.2384, allocations: 2.094 kB / 370.3 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-05/0.2385, allocations: 34.09 kB / 370.4 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.2385, allocations: 21.59 kB / 370.4 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.2397, allocations: 0.544 MB / 370.9 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.2435, allocations: 3.59 MB / 374.5 MB, free: 23.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.244, allocations: 244.5 kB / 374.7 MB, free: 22.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002629/0.2443, allocations: 115.1 kB / 374.9 MB, free: 22.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.2443, allocations: 4.125 kB / 374.9 MB, free: 22.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.2444, allocations: 37.17 kB / 374.9 MB, free: 22.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.713e-06/0.2444, allocations: 0.5 kB / 374.9 MB, free: 22.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001834/0.2462, allocations: 1.073 MB / 376 MB, free: 22.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.2463, allocations: 79.86 kB / 376.1 MB, free: 22.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008351/0.2471, allocations: 0.7691 MB / 376.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.2471, allocations: 31.05 kB / 376.9 MB, free: 21.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.2474, allocations: 0.5086 MB / 377.4 MB, free: 21.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.112e-05/0.2474, allocations: 112.2 kB / 377.5 MB, free: 21.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.2476, allocations: 120.9 kB / 377.6 MB, free: 21.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.2477, allocations: 383 kB / 378 MB, free: 20.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.248, allocations: 133.4 kB / 378.1 MB, free: 20.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003732/0.2484, allocations: 446.3 kB / 378.5 MB, free: 20.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.249, allocations: 0.6127 MB / 379.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.249, allocations: 3.281 kB / 379.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00102/0.25, allocations: 0.6521 MB / 379.8 MB, free: 19.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.2501, allocations: 15.02 kB / 379.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.2501, allocations: 10.44 kB / 379.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.2502, allocations: 33.55 kB / 379.9 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.2507, allocations: 150 kB / 380 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006659/0.2514, allocations: 1.392 MB / 381.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004569/0.2518, allocations: 45.53 kB / 381.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.2519, allocations: 36.45 kB / 381.5 MB, free: 17.91 MB / 302.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.0002539/0.2521, allocations: 233.6 kB / 381.7 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.344e-05/0.2522, allocations: 80.52 kB / 381.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006346/0.2529, allocations: 336 kB / 382.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2529, allocations: 2.5 kB / 382.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.2529, allocations: 6.25 kB / 382.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2529, allocations: 2.578 kB / 382.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.2544, allocations: 1.119 MB / 383.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2544, allocations: 3.969 kB / 383.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.2547, allocations: 62.19 kB / 383.3 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.285e-05/0.2548, allocations: 22.86 kB / 383.3 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.2548, allocations: 12.58 kB / 383.3 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005616/0.2554, allocations: 1.378 MB / 384.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.2554, allocations: 8.5 kB / 384.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008028/0.2562, allocations: 0.5729 MB / 385.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.2564, allocations: 171.8 kB / 385.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.753e-05/0.2565, allocations: 9.094 kB / 385.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003365/0.2568, allocations: 20.19 kB / 385.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.2569, allocations: 31.33 kB / 385.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.2569, allocations: 12.52 kB / 385.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000597/0.2575, allocations: 0.5162 MB / 386.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2575, allocations: 1.125 kB / 386.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006365/0.2582, allocations: 166.1 kB / 386.2 MB, free: 14.63 MB / 302.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.001018/0.2592, allocations: 1.154 MB / 387.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.2601, allocations: 490.9 kB / 387.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2601, allocations: 0 / 387.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003375/0.2604, allocations: 241.8 kB / 388.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009385/0.2614, allocations: 181.8 kB / 388.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007512/0.2689, allocations: 6.922 MB / 395.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.2692, allocations: 0.9625 MB / 396.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003587/0.2696, allocations: 89.23 kB / 396.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002883/0.2699, allocations: 317.1 kB / 396.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2699, allocations: 0 / 396.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.3034, allocations: 15.71 MB / 412.2 MB, free: 10.58 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.981/9.284, allocations: 11.69 kB / 412.3 MB, free: 10.57 MB / 318.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