Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_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.001098/0.001098, allocations: 104.1 kB / 17.58 MB, free: 5.426 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.001197/0.001197, allocations: 187.9 kB / 18.5 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 56.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08058/0.08196, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.009113/0.09111, allocations: 7.927 MB / 335.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004364/0.09551, allocations: 2.61 MB / 337.9 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008223/0.09642, allocations: 23.94 kB / 337.9 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.09791, allocations: 0.5008 MB / 338.4 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.09919, allocations: 404.8 kB / 338.8 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005707/0.09977, allocations: 211.7 kB / 339 MB, free: 8.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001573/0.1014, allocations: 1.226 MB / 340.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008197/0.1022, allocations: 0.537 MB / 340.8 MB, free: 6.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006986/0.1029, allocations: 478.1 kB / 341.3 MB, free: 6.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000749/0.1037, allocations: 0.525 MB / 341.8 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001901/0.1039, allocations: 112 kB / 341.9 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003779/0.1042, allocations: 148 kB / 342.1 MB, free: 5.605 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.1044, allocations: 239.2 kB / 342.3 MB, free: 5.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005043/0.1049, allocations: 0.5638 MB / 342.9 MB, free: 4.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.1063, allocations: 1.433 MB / 344.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1063, allocations: 4 kB / 344.3 MB, free: 3.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1063, allocations: 4 kB / 344.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.1063, allocations: 4 kB / 344.3 MB, free: 3.355 MB / 286.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.002072/0.1084, allocations: 1.293 MB / 345.6 MB, free: 2.008 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.1085, allocations: 12.03 kB / 345.6 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.1086, allocations: 131.5 kB / 345.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000487/0.1091, allocations: 155.5 kB / 345.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008721/0.11, allocations: 0.6338 MB / 346.5 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.728e-05/0.1101, allocations: 66.12 kB / 346.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.1102, allocations: 87.91 kB / 346.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.1115, allocations: 0.8223 MB / 347.5 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.631e-05/0.1115, allocations: 3.938 kB / 347.5 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.798e-05/0.1116, allocations: 36.05 kB / 347.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.1116, allocations: 27.92 kB / 347.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.1127, allocations: 0.5387 MB / 348.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004377/0.117, allocations: 3.586 MB / 351.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.1176, allocations: 242.6 kB / 351.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.1178, allocations: 124.7 kB / 352 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.1179, allocations: 4 kB / 352 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.1179, allocations: 34.56 kB / 352.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.1179, allocations: 0 / 352.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002008/0.1199, allocations: 1.067 MB / 353.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/0.12, allocations: 89.03 kB / 353.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009708/0.121, allocations: 0.7623 MB / 354 MB, free: 9.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.121, allocations: 33.7 kB / 354 MB, free: 9.121 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004003/0.1214, allocations: 0.5174 MB / 354.5 MB, free: 8.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.284e-05/0.1215, allocations: 98.56 kB / 354.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.1217, allocations: 126.1 kB / 354.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1219, allocations: 382.8 kB / 355.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/0.1222, allocations: 125.2 kB / 355.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004762/0.1227, allocations: 450.2 kB / 355.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007913/0.1235, allocations: 0.6218 MB / 356.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.1235, allocations: 4 kB / 356.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001128/0.1246, allocations: 0.6384 MB / 357 MB, free: 5.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1246, allocations: 11.94 kB / 357 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.1247, allocations: 16.12 kB / 357 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001605/0.1248, allocations: 32.86 kB / 357 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.1253, allocations: 147.7 kB / 357.2 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.1264, allocations: 1.394 MB / 358.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004767/0.1269, allocations: 40.02 kB / 358.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/0.1269, allocations: 39.98 kB / 358.6 MB, free: 4.027 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.0003097/0.1272, allocations: 241.5 kB / 358.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1274, allocations: 75.06 kB / 358.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006837/0.128, allocations: 341.9 kB / 359.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.1281, allocations: 4 kB / 359.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.1281, allocations: 7.938 kB / 359.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1281, allocations: 0 / 359.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.1298, allocations: 1.114 MB / 360.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1298, allocations: 0 / 360.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.1301, allocations: 59.95 kB / 360.5 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.775e-05/0.1302, allocations: 29.06 kB / 360.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.1302, allocations: 15.97 kB / 360.5 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009502/0.1312, allocations: 1.371 MB / 361.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1312, allocations: 4.031 kB / 361.9 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009062/0.1321, allocations: 0.5765 MB / 362.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.1323, allocations: 180.2 kB / 362.6 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.128e-05/0.1324, allocations: 8 kB / 362.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.1328, allocations: 19.98 kB / 362.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.1329, allocations: 27.91 kB / 362.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.1329, allocations: 8 kB / 362.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006457/0.1335, allocations: 0.5225 MB / 363.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1335, allocations: 4 kB / 363.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006824/0.1342, allocations: 168 kB / 363.4 MB, free: 14.97 MB / 318.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.001297/0.1355, allocations: 1.14 MB / 364.5 MB, free: 13.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009466/0.1365, allocations: 491.7 kB / 365 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.1365, allocations: 0 / 365 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.137, allocations: 244.1 kB / 365.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009952/0.138, allocations: 188.4 kB / 365.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.1482, allocations: 6.911 MB / 372.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.1489, allocations: 0.9487 MB / 373.3 MB, free: 4.543 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004913/0.1494, allocations: 94.17 kB / 373.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00039/0.1498, allocations: 315.3 kB / 373.7 MB, free: 4.141 MB / 318.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1498, allocations: 0 / 373.7 MB, free: 4.141 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1905/0.3403, allocations: 15.71 MB / 389.4 MB, free: 50.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.806/10.15, allocations: 3.5 kB / 389.4 MB, free: 50.42 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches