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.001605/0.001605, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001885/0.001885, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2713, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009872/0.2813, allocations: 8.169 MB / 416.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005289/0.2866, allocations: 2.733 MB / 419.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001297/0.2879, allocations: 27.94 kB / 419.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.2899, allocations: 0.5667 MB / 420.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001863/0.2918, allocations: 468.5 kB / 420.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.2931, allocations: 363 kB / 421.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002413/0.2955, allocations: 1.495 MB / 422.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.2967, allocations: 0.6204 MB / 423.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.2979, allocations: 0.568 MB / 423.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009459/0.2988, allocations: 0.5987 MB / 424.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003596/0.2992, allocations: 139.9 kB / 424.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005735/0.2998, allocations: 180 kB / 424.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003002/0.3001, allocations: 282.9 kB / 424.9 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3012, allocations: 0.6647 MB / 425.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002836/0.304, allocations: 1.731 MB / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.304, allocations: 0 / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.3041, allocations: 0 / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.938e-05/0.3041, allocations: 0 / 427.3 MB, free: 14.86 MB / 350.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.003869/0.308, allocations: 1.541 MB / 428.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3081, allocations: 12.03 kB / 428.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002667/0.3084, allocations: 156.3 kB / 429 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007376/0.3091, allocations: 192 kB / 429.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.311, allocations: 0.8022 MB / 430 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.822e-05/0.3111, allocations: 77.94 kB / 430.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.3113, allocations: 103.9 kB / 430.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.3133, allocations: 0.9545 MB / 431.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.765e-05/0.3133, allocations: 7.984 kB / 431.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.502e-05/0.3134, allocations: 40 kB / 431.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.77e-05/0.3135, allocations: 24 kB / 431.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.3148, allocations: 0.6402 MB / 431.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005977/0.3208, allocations: 4.101 MB / 436 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.3218, allocations: 427.2 kB / 436.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.3221, allocations: 164.8 kB / 436.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.3222, allocations: 8 kB / 436.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.3222, allocations: 34.56 kB / 436.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.745e-06/0.3222, allocations: 0 / 436.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002785/0.325, allocations: 1.349 MB / 437.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.3251, allocations: 132.5 kB / 438.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.3264, allocations: 0.8898 MB / 439 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.3264, allocations: 33.7 kB / 439 MB, free: 2.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/0.3268, allocations: 0.6047 MB / 439.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.3269, allocations: 158.7 kB / 439.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/0.3271, allocations: 138.6 kB / 439.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3273, allocations: 334 kB / 440.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.3276, allocations: 172.8 kB / 440.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004973/0.3281, allocations: 498.5 kB / 440.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008644/0.329, allocations: 0.6868 MB / 441.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.329, allocations: 0 / 441.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001311/0.3303, allocations: 0.7552 MB / 442.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3303, allocations: 8 kB / 442.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.3304, allocations: 15.98 kB / 442.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.3305, allocations: 32.86 kB / 442.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005684/0.3311, allocations: 167.7 kB / 442.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/0.3322, allocations: 1.39 MB / 443.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006244/0.3328, allocations: 44.09 kB / 444 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.117e-05/0.3329, allocations: 35.98 kB / 444 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005506/0.3334, allocations: 350.1 kB / 444.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004698/0.3339, allocations: 482.5 kB / 444.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007574/0.3347, allocations: 0.6639 MB / 445.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.256e-06/0.3347, allocations: 4 kB / 445.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001118/0.3358, allocations: 0.7278 MB / 446.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.3359, allocations: 16.19 kB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3359, allocations: 8 kB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-05/0.336, allocations: 36.78 kB / 446.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.3365, allocations: 171.7 kB / 446.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009076/0.3374, allocations: 1.39 MB / 447.8 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006056/0.338, allocations: 31.98 kB / 447.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.3381, allocations: 36 kB / 447.9 MB, free: 8.852 MB / 366.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.0002099/0.3383, allocations: 243.9 kB / 448.1 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.3385, allocations: 95.39 kB / 448.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008384/0.3393, allocations: 431.5 kB / 448.6 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3393, allocations: 4 kB / 448.6 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.3394, allocations: 4 kB / 448.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.3394, allocations: 11.88 kB / 448.7 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.3415, allocations: 1.368 MB / 450 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3415, allocations: 4 kB / 450 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000373/0.3419, allocations: 79.89 kB / 450.1 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.024e-05/0.342, allocations: 24.78 kB / 450.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.342, allocations: 12 kB / 450.1 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009751/0.343, allocations: 1.371 MB / 451.5 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.343, allocations: 0 / 451.5 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.3441, allocations: 0.715 MB / 452.2 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.3445, allocations: 212.4 kB / 452.4 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.3447, allocations: 12 kB / 452.5 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.3451, allocations: 19.98 kB / 452.5 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.3452, allocations: 27.97 kB / 452.5 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.3452, allocations: 19.98 kB / 452.5 MB, free: 3.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009279/0.3462, allocations: 0.6054 MB / 453.1 MB, free: 3.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3462, allocations: 0 / 453.1 MB, free: 3.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001244/0.3474, allocations: 351.9 kB / 453.5 MB, free: 2.965 MB / 366.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.001535/0.349, allocations: 1.295 MB / 454.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.3508, allocations: 0.9741 MB / 455.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3508, allocations: 4 kB / 455.7 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004437/0.3513, allocations: 291 kB / 456 MB, free: 328 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.3526, allocations: 240.2 kB / 456.3 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.3637, allocations: 7.631 MB / 463.9 MB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.3644, allocations: 1.021 MB / 464.9 MB, free: 6.953 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005238/0.365, allocations: 127.3 kB / 465 MB, free: 6.824 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004855/0.3655, allocations: 391.3 kB / 465.4 MB, free: 6.441 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3655, allocations: 0 / 465.4 MB, free: 6.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0512/0.4167, allocations: 19.79 MB / 485.2 MB, free: 2.922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.42, allocations: 10.81 kB / 485.2 MB, free: 2.918 MB / 398.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