Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001593, 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.001879/0.001879, 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.361/1.361, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001299, allocations: 68.56 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08198, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009201/0.09122, allocations: 8.164 MB / 365.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004692/0.09596, allocations: 2.731 MB / 368.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009234/0.09691, allocations: 27.94 kB / 368.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.09851, allocations: 0.5316 MB / 369 MB, free: 2.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001319/0.09984, allocations: 432.5 kB / 369.5 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008874/0.1007, allocations: 371.2 kB / 369.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001808/0.1026, allocations: 1.486 MB / 371.3 MB, free: 196 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1371/0.2397, allocations: 0.6116 MB / 371.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008703/0.2406, allocations: 0.549 MB / 372.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005819/0.2412, allocations: 0.6063 MB / 373.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001835/0.2414, allocations: 138.9 kB / 373.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003533/0.2418, allocations: 179.2 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.242, allocations: 290.6 kB / 373.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004799/0.2425, allocations: 0.6615 MB / 374.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001592/0.2441, allocations: 1.695 MB / 376 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2441, allocations: 0 / 376 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2441, allocations: 1.938 kB / 376 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.2441, allocations: 0 / 376 MB, free: 9.93 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002205/0.2463, allocations: 1.508 MB / 377.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.2464, allocations: 10.94 kB / 377.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.2465, allocations: 149.2 kB / 377.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005876/0.2471, allocations: 188.8 kB / 377.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.2481, allocations: 0.775 MB / 378.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.2482, allocations: 71.12 kB / 378.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.2483, allocations: 108.3 kB / 378.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.2497, allocations: 0.9585 MB / 379.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/0.2498, allocations: 4.375 kB / 379.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.866e-05/0.2498, allocations: 41.66 kB / 379.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.2499, allocations: 27.75 kB / 379.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.251, allocations: 0.6345 MB / 380.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004393/0.2554, allocations: 4.126 MB / 384.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009583/0.2564, allocations: 426.2 kB / 385 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.2567, allocations: 167.2 kB / 385.2 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.2567, allocations: 8.391 kB / 385.2 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.2567, allocations: 37.66 kB / 385.2 MB, free: 5.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.943e-06/0.2567, allocations: 0 / 385.2 MB, free: 5.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002112/0.2589, allocations: 1.317 MB / 386.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.2589, allocations: 137.1 kB / 386.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.2599, allocations: 0.8896 MB / 387.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.26, allocations: 35.05 kB / 387.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.2602, allocations: 0.5915 MB / 388.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.448e-05/0.2603, allocations: 152.1 kB / 388.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.2605, allocations: 142.2 kB / 388.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.972e-05/0.2605, allocations: 331.8 kB / 388.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.2609, allocations: 172.5 kB / 389 MB, free: 2.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.2613, allocations: 0.5014 MB / 389.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000713/0.262, allocations: 0.6832 MB / 390.2 MB, free: 1.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.262, allocations: 8.25 kB / 390.2 MB, free: 1.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001108/0.2631, allocations: 0.7433 MB / 390.9 MB, free: 1.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2632, allocations: 20.38 kB / 390.9 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.2632, allocations: 10.09 kB / 391 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001333/0.2633, allocations: 28.73 kB / 391 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005535/0.2639, allocations: 174.3 kB / 391.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006541/0.2645, allocations: 1.379 MB / 392.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.2651, allocations: 39.42 kB / 392.6 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.2651, allocations: 42.38 kB / 392.6 MB, free: 20 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005302/0.2657, allocations: 349.4 kB / 393 MB, free: 15.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004821/0.2662, allocations: 490.3 kB / 393.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007687/0.2669, allocations: 0.6652 MB / 394.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.022e-06/0.267, allocations: 3.312 kB / 394.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001125/0.2681, allocations: 0.7234 MB / 394.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2681, allocations: 9.719 kB / 394.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.2681, allocations: 10.34 kB / 394.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.443e-05/0.2682, allocations: 35.8 kB / 394.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/0.2688, allocations: 164.6 kB / 395 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009261/0.2698, allocations: 1.393 MB / 396.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/0.2703, allocations: 33.61 kB / 396.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-05/0.2704, allocations: 34.5 kB / 396.5 MB, free: 13.06 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0001917/0.2706, allocations: 238.6 kB / 396.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.2707, allocations: 99.25 kB / 396.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008006/0.2715, allocations: 433 kB / 397.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2715, allocations: 4 kB / 397.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2716, allocations: 1.5 kB / 397.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2716, allocations: 1.078 kB / 397.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.2736, allocations: 1.381 MB / 398.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.2736, allocations: 1.375 kB / 398.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000353/0.274, allocations: 79.31 kB / 398.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.298e-05/0.2741, allocations: 29.31 kB / 398.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.2741, allocations: 7.719 kB / 398.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009527/0.2751, allocations: 1.373 MB / 400.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2751, allocations: 2.5 kB / 400.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.2762, allocations: 0.7093 MB / 400.8 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002625/0.2765, allocations: 203.8 kB / 401 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.2766, allocations: 11.66 kB / 401.1 MB, free: 9.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.277, allocations: 27.91 kB / 401.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.4e-05/0.2771, allocations: 32.97 kB / 401.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.2771, allocations: 8.562 kB / 401.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000822/0.2779, allocations: 0.6083 MB / 401.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2779, allocations: 1.062 kB / 401.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001199/0.2791, allocations: 355.9 kB / 402.1 MB, free: 9.281 MB / 318.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,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.001427/0.2806, allocations: 1.289 MB / 403.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.2823, allocations: 0.9828 MB / 404.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.2823, allocations: 0 / 404.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.2828, allocations: 282 kB / 404.6 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.2841, allocations: 253.8 kB / 404.9 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.2943, allocations: 8.194 MB / 413.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005234/0.2948, allocations: 1.021 MB / 414.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005591/0.2954, allocations: 119.3 kB / 414.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004493/0.2958, allocations: 395.3 kB / 414.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2958, allocations: 0 / 414.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04159/0.3374, allocations: 19.41 MB / 434 MB, free: 11.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.355/9.693, allocations: 10.06 kB / 434 MB, free: 11.11 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches