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.001419/0.001419, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001575/0.001575, allocations: 191 kB / 18 MB, free: 5.098 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.34/1.34, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 47.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2699, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.009804/0.2798, allocations: 7.973 MB / 408.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00434/0.2841, allocations: 2.62 MB / 410.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006054/0.2848, allocations: 20 kB / 410.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.2861, allocations: 0.5204 MB / 411.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.2872, allocations: 440.7 kB / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000457/0.2876, allocations: 215.6 kB / 412 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.2889, allocations: 1.226 MB / 413.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007201/0.2896, allocations: 0.5292 MB / 413.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006002/0.2902, allocations: 494.1 kB / 414.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005893/0.2908, allocations: 0.5172 MB / 414.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.291, allocations: 116 kB / 414.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.2913, allocations: 156 kB / 415 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.2914, allocations: 239.1 kB / 415.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000467/0.2919, allocations: 0.556 MB / 415.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00152/0.2934, allocations: 1.471 MB / 417.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2935, allocations: 0 / 417.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2935, allocations: 0 / 417.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.2935, allocations: 0 / 417.3 MB, free: 7.66 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.002183/0.2957, allocations: 1.331 MB / 418.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.2957, allocations: 8.031 kB / 418.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.2959, allocations: 139.5 kB / 418.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005592/0.2965, allocations: 160.1 kB / 418.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.2975, allocations: 0.6382 MB / 419.6 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.2975, allocations: 66.12 kB / 419.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.2977, allocations: 95.88 kB / 419.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.299, allocations: 0.8145 MB / 420.5 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.359e-05/0.299, allocations: 15.92 kB / 420.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.577e-05/0.2991, allocations: 36 kB / 420.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.2991, allocations: 23.94 kB / 420.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.3002, allocations: 0.5348 MB / 421.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004147/0.3043, allocations: 3.567 MB / 424.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.3049, allocations: 246.7 kB / 425 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002509/0.3051, allocations: 112.8 kB / 425.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.3052, allocations: 0 / 425.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.3052, allocations: 38.56 kB / 425.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.173e-06/0.3052, allocations: 4 kB / 425.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002115/0.3073, allocations: 1.084 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.162e-05/0.3074, allocations: 85.05 kB / 426.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009421/0.3084, allocations: 0.7625 MB / 427 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.3084, allocations: 33.7 kB / 427.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.3088, allocations: 0.5228 MB / 427.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.804e-05/0.3089, allocations: 119 kB / 427.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.309, allocations: 122.2 kB / 427.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3092, allocations: 382.8 kB / 428.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.3095, allocations: 133.2 kB / 428.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005602/0.3101, allocations: 446.2 kB / 428.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008231/0.3109, allocations: 0.6179 MB / 429.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3109, allocations: 8 kB / 429.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001098/0.312, allocations: 0.6466 MB / 430 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.312, allocations: 11.94 kB / 430.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3121, allocations: 12 kB / 430.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.3122, allocations: 36.84 kB / 430.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004497/0.3127, allocations: 147.7 kB / 430.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.3137, allocations: 1.39 MB / 431.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004421/0.3142, allocations: 44.09 kB / 431.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.3142, allocations: 32 kB / 431.7 MB, free: 8.273 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.0002897/0.3145, allocations: 237.5 kB / 431.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3146, allocations: 79.48 kB / 432 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006612/0.3153, allocations: 341.8 kB / 432.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3153, allocations: 4.047 kB / 432.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.3153, allocations: 11.86 kB / 432.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3154, allocations: 3.984 kB / 432.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.3169, allocations: 1.119 MB / 433.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.3169, allocations: 0 / 433.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.3172, allocations: 55.97 kB / 433.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.478e-05/0.3173, allocations: 29 kB / 433.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.3173, allocations: 8 kB / 433.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008976/0.3183, allocations: 1.382 MB / 435 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3183, allocations: 4.031 kB / 435 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008793/0.3192, allocations: 0.5851 MB / 435.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.3194, allocations: 172.6 kB / 435.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.104e-05/0.3195, allocations: 8 kB / 435.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.3198, allocations: 27.97 kB / 435.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.3199, allocations: 19.97 kB / 435.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.3199, allocations: 12 kB / 435.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006423/0.3206, allocations: 0.5185 MB / 436.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.525e-06/0.3206, allocations: 0 / 436.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006341/0.3212, allocations: 171.9 kB / 436.5 MB, free: 3.203 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.001293/0.3225, allocations: 1.147 MB / 437.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008598/0.3234, allocations: 487.8 kB / 438.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3234, allocations: 0 / 438.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.3238, allocations: 239.9 kB / 438.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009178/0.3247, allocations: 186.1 kB / 438.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008586/0.3333, allocations: 6.532 MB / 445 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.3339, allocations: 0.9526 MB / 446 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003321/0.3342, allocations: 90.17 kB / 446.1 MB, free: 9.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003769/0.3346, allocations: 319.3 kB / 446.4 MB, free: 8.734 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3346, allocations: 0 / 446.4 MB, free: 8.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04352/0.3781, allocations: 16.06 MB / 462.5 MB, free: 8.965 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.92, allocations: 2.5 kB / 462.5 MB, free: 8.965 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