Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001112/0.001112, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 60.2 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08327/0.08448, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.009034/0.09355, allocations: 7.983 MB / 365.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004137/0.09771, allocations: 2.648 MB / 368.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000702/0.09843, allocations: 20 kB / 368.2 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.09985, allocations: 0.5008 MB / 368.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001038/0.1009, allocations: 400.8 kB / 369.1 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.1014, allocations: 223.6 kB / 369.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001287/0.1027, allocations: 1.226 MB / 370.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007754/0.1035, allocations: 0.537 MB / 371.1 MB, free: 392 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1752/0.2787, allocations: 483.8 kB / 371.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.2799, allocations: 0.5154 MB / 372.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004118/0.2803, allocations: 114.8 kB / 372.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006727/0.281, allocations: 159.3 kB / 372.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002471/0.2813, allocations: 237.4 kB / 372.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.2823, allocations: 0.5665 MB / 373.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.2843, allocations: 1.439 MB / 374.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.2843, allocations: 0 / 374.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2843, allocations: 0.9375 kB / 374.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.19e-05/0.2843, allocations: 2.25 kB / 374.6 MB, free: 10.65 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.002482/0.2868, allocations: 1.303 MB / 375.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2869, allocations: 10.75 kB / 375.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.287, allocations: 134.6 kB / 376.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007168/0.2878, allocations: 173.6 kB / 376.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008915/0.2887, allocations: 0.6309 MB / 376.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.117e-05/0.2887, allocations: 62.25 kB / 376.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.2888, allocations: 88.94 kB / 377 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2901, allocations: 0.8261 MB / 377.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.2902, allocations: 1.938 kB / 377.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.2902, allocations: 35.62 kB / 377.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.2903, allocations: 21.19 kB / 377.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.2913, allocations: 0.541 MB / 378.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.2954, allocations: 3.583 MB / 382 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004875/0.2959, allocations: 236.7 kB / 382.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.2961, allocations: 121 kB / 382.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.2961, allocations: 13.47 kB / 382.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/0.2962, allocations: 34.66 kB / 382.4 MB, free: 6.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.2962, allocations: 0 / 382.4 MB, free: 6.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001901/0.2981, allocations: 1.071 MB / 383.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/0.2981, allocations: 88.66 kB / 383.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009276/0.299, allocations: 0.7637 MB / 384.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.2991, allocations: 35.14 kB / 384.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.2993, allocations: 0.5181 MB / 384.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.2994, allocations: 112.2 kB / 385 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.2995, allocations: 120.6 kB / 385.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.232e-05/0.2996, allocations: 379.3 kB / 385.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.2999, allocations: 129.5 kB / 385.6 MB, free: 4.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003647/0.3003, allocations: 452.1 kB / 386 MB, free: 4.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006792/0.301, allocations: 0.6079 MB / 386.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.301, allocations: 3.219 kB / 386.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001065/0.3021, allocations: 0.6468 MB / 387.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3021, allocations: 9.062 kB / 387.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.3021, allocations: 11.69 kB / 387.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001352/0.3023, allocations: 41.11 kB / 387.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.3027, allocations: 152.9 kB / 387.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006833/0.3034, allocations: 1.387 MB / 388.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004914/0.3039, allocations: 41.05 kB / 388.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.304, allocations: 36.53 kB / 389 MB, free: 2.148 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.0002389/0.3042, allocations: 248.8 kB / 389.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.955e-05/0.3043, allocations: 76.73 kB / 389.3 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006171/0.305, allocations: 331.2 kB / 389.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.305, allocations: 3.094 kB / 389.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.305, allocations: 6.328 kB / 389.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.305, allocations: 2.203 kB / 389.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.3064, allocations: 1.119 MB / 390.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.3065, allocations: 2 kB / 390.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.3067, allocations: 62.95 kB / 390.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.34e-05/0.3068, allocations: 20.12 kB / 390.8 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3068, allocations: 12.59 kB / 390.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006629/0.3075, allocations: 1.377 MB / 392.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3075, allocations: 5.406 kB / 392.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009178/0.3085, allocations: 0.5713 MB / 392.8 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.3087, allocations: 176.6 kB / 393 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.3088, allocations: 11.72 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003529/0.3092, allocations: 21.55 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.098e-05/0.3092, allocations: 22.33 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.3093, allocations: 8.969 kB / 393 MB, free: 15.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006542/0.3099, allocations: 0.5236 MB / 393.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3099, allocations: 0 / 393.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.3106, allocations: 174.6 kB / 393.7 MB, free: 14.9 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.001241/0.3119, allocations: 1.134 MB / 394.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008736/0.3127, allocations: 490.5 kB / 395.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3128, allocations: 5.562 kB / 395.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.3131, allocations: 244 kB / 395.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009862/0.3141, allocations: 198 kB / 395.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008784/0.3229, allocations: 6.917 MB / 402.7 MB, free: 8.938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005025/0.3234, allocations: 0.9628 MB / 403.7 MB, free: 8.117 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003754/0.3238, allocations: 94.91 kB / 403.8 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.3242, allocations: 316.3 kB / 404.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3242, allocations: 0 / 404.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/0.3616, allocations: 15.71 MB / 419.8 MB, free: 9.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.171/9.533, allocations: 3.75 kB / 419.8 MB, free: 9.863 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches