Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.001123/0.001123, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001113/0.001113, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.341/1.341, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001233/0.001233, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08815/0.08939, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.1756/0.2651, allocations: 9.533 MB / 384.2 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005938/0.271, allocations: 3.134 MB / 387.3 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.2726, allocations: 26.38 kB / 387.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002119/0.2747, allocations: 0.5755 MB / 387.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002015/0.2768, allocations: 0.5627 MB / 388.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.2778, allocations: 313.7 kB / 388.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002807/0.2806, allocations: 1.765 MB / 390.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.2818, allocations: 0.6386 MB / 391.2 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.2831, allocations: 0.6715 MB / 391.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.2844, allocations: 0.7398 MB / 392.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003722/0.2847, allocations: 158.9 kB / 392.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006018/0.2853, allocations: 199.6 kB / 393 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.2856, allocations: 333.1 kB / 393.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009638/0.2866, allocations: 0.8033 MB / 394.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002326/0.2889, allocations: 1.982 MB / 396.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2889, allocations: 5.344 kB / 396.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2889, allocations: 0 / 396.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.185e-05/0.289, allocations: 0 / 396.1 MB, free: 2.176 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003336/0.2923, allocations: 1.796 MB / 397.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.2924, allocations: 9.25 kB / 397.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001888/0.2926, allocations: 167.3 kB / 398 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006167/0.2932, allocations: 200.9 kB / 398.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.2947, allocations: 0.832 MB / 399.1 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.2948, allocations: 110.5 kB / 399.2 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.295, allocations: 120.9 kB / 399.3 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.2969, allocations: 1.15 MB / 400.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.628e-05/0.297, allocations: 1.438 kB / 400.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.661e-05/0.2971, allocations: 48.69 kB / 400.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.2971, allocations: 25.81 kB / 400.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.2986, allocations: 0.7616 MB / 401.3 MB, free: 15.18 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005925/0.3046, allocations: 3.906 MB / 405.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.3062, allocations: 0.5916 MB / 405.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005115/0.3067, allocations: 268.7 kB / 406 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.3067, allocations: 7.562 kB / 406.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006409/0.3074, allocations: 302.7 kB / 406.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.336e-06/0.3074, allocations: 1.094 kB / 406.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.004877/0.3123, allocations: 2.078 MB / 408.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002148/0.3125, allocations: 472.9 kB / 408.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.3141, allocations: 1.107 MB / 410 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.648e-05/0.3142, allocations: 43.14 kB / 410 MB, free: 9.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005454/0.3148, allocations: 0.6486 MB / 410.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.315, allocations: 227 kB / 410.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/0.3153, allocations: 195.3 kB / 411.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3155, allocations: 343.6 kB / 411.4 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005481/0.316, allocations: 248.8 kB / 411.7 MB, free: 7.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008978/0.3169, allocations: 0.7054 MB / 412.4 MB, free: 7.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.3184, allocations: 0.9453 MB / 413.3 MB, free: 6.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.3184, allocations: 7.344 kB / 413.3 MB, free: 6.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002179/0.3206, allocations: 1.146 MB / 414.5 MB, free: 5.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.131e-05/0.3206, allocations: 65.89 kB / 414.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.3207, allocations: 12.34 kB / 414.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005847/0.3213, allocations: 170.4 kB / 414.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006624/0.3219, allocations: 209.6 kB / 414.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00409/0.326, allocations: 3.885 MB / 418.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.3272, allocations: 64.78 kB / 418.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.119e-05/0.3273, allocations: 49.45 kB / 418.9 MB, free: 1.773 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005054/0.3278, allocations: 289.3 kB / 419.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.328, allocations: 130.9 kB / 419.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.3294, allocations: 0.7015 MB / 420 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.3294, allocations: 6.875 kB / 420 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3294, allocations: 3.984 kB / 420.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001351/0.3308, allocations: 0.9529 MB / 421 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.3337, allocations: 1.797 MB / 422.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3338, allocations: 0 / 422.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004854/0.3342, allocations: 116.2 kB / 422.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004186/0.3347, allocations: 125.6 kB / 423 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.3347, allocations: 16 kB / 423.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.3381, allocations: 3.593 MB / 426.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3381, allocations: 0 / 426.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.34, allocations: 1.046 MB / 427.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005404/0.3405, allocations: 255.6 kB / 427.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.3407, allocations: 23.98 kB / 428 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006138/0.3413, allocations: 31.97 kB / 428 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3415, allocations: 64.36 kB / 428.1 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.3415, allocations: 16 kB / 428.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009969/0.3425, allocations: 0.7484 MB / 428.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3425, allocations: 0 / 428.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001109/0.3436, allocations: 308 kB / 429.1 MB, free: 7.641 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002122/0.3458, allocations: 1.616 MB / 430.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.3478, allocations: 1.104 MB / 431.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.3478, allocations: 4 kB / 431.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009181/0.3487, allocations: 0.5489 MB / 432.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.3504, allocations: 341.8 kB / 432.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.3647, allocations: 9.718 MB / 442.4 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/0.3654, allocations: 1.086 MB / 443.5 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006127/0.3661, allocations: 149.8 kB / 443.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005116/0.3666, allocations: 467.3 kB / 444.1 MB, free: 7.906 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3666, allocations: 0 / 444.1 MB, free: 7.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06422/0.4308, allocations: 29.08 MB / 473.2 MB, free: 10.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.79, allocations: 19.66 kB / 473.2 MB, free: 10.7 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv --start-time 0 --stop-time 25 --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_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_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_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches