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.001315/0.001315, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3152, allocations: 50.55 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.0105/0.3257, allocations: 7.98 MB / 416.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005331/0.3311, allocations: 2.648 MB / 419.4 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008677/0.332, allocations: 23.94 kB / 419.4 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001517/0.3336, allocations: 0.5008 MB / 419.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.3347, allocations: 400.8 kB / 420.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.3352, allocations: 223.6 kB / 420.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.3366, allocations: 1.241 MB / 421.8 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008156/0.3375, allocations: 0.5292 MB / 422.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000763/0.3382, allocations: 482.1 kB / 422.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006609/0.3389, allocations: 0.5173 MB / 423.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.3391, allocations: 116 kB / 423.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00031/0.3394, allocations: 156 kB / 423.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.3396, allocations: 239.1 kB / 423.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005821/0.3402, allocations: 0.5637 MB / 424.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001784/0.342, allocations: 1.467 MB / 425.8 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.342, allocations: 0 / 425.8 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.342, allocations: 0 / 425.8 MB, free: 376 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.342, allocations: 0 / 425.8 MB, free: 376 kB / 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.002333/0.3443, allocations: 1.335 MB / 427.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3444, allocations: 8.031 kB / 427.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001815/0.3446, allocations: 131.5 kB / 427.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007374/0.3453, allocations: 176.2 kB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3465, allocations: 0.6615 MB / 428.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.459e-05/0.3466, allocations: 74.11 kB / 428.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.3467, allocations: 83.94 kB / 428.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.3481, allocations: 0.8184 MB / 429.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/0.3482, allocations: 11.94 kB / 429.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.19e-05/0.3482, allocations: 36 kB / 429.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.3483, allocations: 20 kB / 429.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.3494, allocations: 0.5387 MB / 429.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00478/0.3542, allocations: 3.567 MB / 433.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005344/0.3547, allocations: 230.1 kB / 433.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.355, allocations: 120.8 kB / 433.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.355, allocations: 4 kB / 433.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.3551, allocations: 38.5 kB / 433.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.3551, allocations: 0 / 433.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002205/0.3573, allocations: 1.106 MB / 434.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.3574, allocations: 85.05 kB / 434.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.3584, allocations: 0.7585 MB / 435.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.3585, allocations: 33.64 kB / 435.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004561/0.3589, allocations: 0.5228 MB / 436.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.474e-05/0.359, allocations: 119.1 kB / 436.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.3592, allocations: 118.2 kB / 436.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.3594, allocations: 382.8 kB / 436.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.3597, allocations: 133.2 kB / 436.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/0.3603, allocations: 446.2 kB / 437.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009038/0.3612, allocations: 0.6177 MB / 437.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3612, allocations: 4 kB / 438 MB, free: 3.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001146/0.3623, allocations: 0.6501 MB / 438.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.3624, allocations: 15.94 kB / 438.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3624, allocations: 12 kB / 438.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.3626, allocations: 33.56 kB / 438.7 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.3631, allocations: 159.7 kB / 438.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.3643, allocations: 1.379 MB / 440.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/0.3648, allocations: 47.92 kB / 440.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.288e-05/0.3649, allocations: 32 kB / 440.3 MB, free: 0.9492 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.0003423/0.3653, allocations: 249.5 kB / 440.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.3654, allocations: 83.52 kB / 440.6 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006931/0.3661, allocations: 326 kB / 440.9 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.3661, allocations: 4 kB / 440.9 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3661, allocations: 3.938 kB / 440.9 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3661, allocations: 3.938 kB / 440.9 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.368, allocations: 1.115 MB / 442 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.368, allocations: 4.219 kB / 442 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002856/0.3683, allocations: 67.89 kB / 442.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-05/0.3684, allocations: 24.78 kB / 442.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.3684, allocations: 8 kB / 442.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.3695, allocations: 1.367 MB / 443.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.3695, allocations: 4.031 kB / 443.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009649/0.3705, allocations: 0.5873 MB / 444.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.3708, allocations: 184.5 kB / 444.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.46e-05/0.3708, allocations: 8 kB / 444.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003402/0.3712, allocations: 19.98 kB / 444.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.3713, allocations: 23.97 kB / 444.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.3713, allocations: 8 kB / 444.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007416/0.3721, allocations: 0.5263 MB / 444.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3721, allocations: 0 / 444.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007004/0.3728, allocations: 171.9 kB / 445 MB, free: 11.88 MB / 366.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.001454/0.3742, allocations: 1.134 MB / 446.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3753, allocations: 480.5 kB / 446.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.3753, allocations: 0 / 446.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.3757, allocations: 255.1 kB / 446.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009446/0.3767, allocations: 183 kB / 447.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009568/0.3863, allocations: 6.522 MB / 453.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006889/0.387, allocations: 0.9526 MB / 454.5 MB, free: 1.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.3873, allocations: 98.14 kB / 454.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.3878, allocations: 319.3 kB / 455 MB, free: 1.426 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3878, allocations: 0 / 455 MB, free: 1.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05712/0.4449, allocations: 16.06 MB / 471 MB, free: 1.621 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.4, allocations: 4 kB / 471 MB, free: 1.617 MB / 382.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.1.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