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.00137/0.00137, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2978, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01082/0.3087, allocations: 8.181 MB / 416.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00541/0.3142, allocations: 2.741 MB / 419.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.3153, allocations: 27.94 kB / 419.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.317, allocations: 0.5317 MB / 420.2 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.3183, allocations: 432.5 kB / 420.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008028/0.3191, allocations: 363.1 kB / 421 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001851/0.321, allocations: 1.495 MB / 422.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009255/0.3219, allocations: 0.6165 MB / 423.1 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008309/0.3228, allocations: 0.5563 MB / 423.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007587/0.3235, allocations: 0.5949 MB / 424.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.3237, allocations: 143.9 kB / 424.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003267/0.3241, allocations: 180 kB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.3243, allocations: 290.9 kB / 424.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006086/0.3249, allocations: 0.6646 MB / 425.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.3269, allocations: 1.724 MB / 427.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.29e-05/0.327, allocations: 3.984 kB / 427.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.327, allocations: 0 / 427.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.465e-05/0.327, allocations: 0 / 427.3 MB, free: 14.91 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.002646/0.3297, allocations: 1.545 MB / 428.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.3297, allocations: 8.031 kB / 428.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001957/0.3299, allocations: 152.3 kB / 429 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00064/0.3306, allocations: 192 kB / 429.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.3319, allocations: 0.8022 MB / 430 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.757e-05/0.332, allocations: 70 kB / 430 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.3322, allocations: 103.9 kB / 430.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.3338, allocations: 0.9622 MB / 431.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.3338, allocations: 3.984 kB / 431.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-05/0.3339, allocations: 44 kB / 431.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.3339, allocations: 24 kB / 431.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.3351, allocations: 0.6363 MB / 431.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005541/0.3407, allocations: 4.097 MB / 435.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009809/0.3417, allocations: 429.5 kB / 436.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.342, allocations: 168.8 kB / 436.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.3421, allocations: 4 kB / 436.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.3421, allocations: 38.56 kB / 436.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.525e-06/0.3421, allocations: 0 / 436.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002527/0.3446, allocations: 1.337 MB / 437.9 MB, free: 3.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.446e-05/0.3447, allocations: 136.5 kB / 438 MB, free: 3.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.346, allocations: 0.8898 MB / 438.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.346, allocations: 41.64 kB / 438.9 MB, free: 2.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000493/0.3465, allocations: 0.6008 MB / 439.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.3467, allocations: 158.7 kB / 439.7 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.3469, allocations: 142.6 kB / 439.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.347, allocations: 330 kB / 440.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003342/0.3474, allocations: 172.8 kB / 440.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.348, allocations: 0.4907 MB / 440.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009874/0.349, allocations: 0.6828 MB / 441.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.349, allocations: 4 kB / 441.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001324/0.3503, allocations: 0.7551 MB / 442.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3503, allocations: 8 kB / 442.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.3504, allocations: 12 kB / 442.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001763/0.3505, allocations: 32.84 kB / 442.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.3511, allocations: 180.1 kB / 442.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.3524, allocations: 1.382 MB / 443.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005745/0.353, allocations: 39.94 kB / 443.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.3531, allocations: 39.98 kB / 443.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005815/0.3536, allocations: 350.1 kB / 444.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005728/0.3542, allocations: 494.5 kB / 444.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00086/0.3551, allocations: 0.66 MB / 445.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.983e-06/0.3551, allocations: 4 kB / 445.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001173/0.3563, allocations: 0.7278 MB / 446.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3563, allocations: 8 kB / 446.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.3563, allocations: 12 kB / 446.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001175/0.3565, allocations: 40.78 kB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005358/0.357, allocations: 163.7 kB / 446.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/0.3582, allocations: 1.387 MB / 447.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.3588, allocations: 40.14 kB / 447.8 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.3588, allocations: 32 kB / 447.8 MB, free: 8.906 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.0002498/0.3591, allocations: 235.9 kB / 448.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.3593, allocations: 95.39 kB / 448.2 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008793/0.3602, allocations: 435.4 kB / 448.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3602, allocations: 8 kB / 448.6 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3602, allocations: 0 / 448.6 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.3602, allocations: 3.938 kB / 448.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.3624, allocations: 1.376 MB / 450 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3624, allocations: 4 kB / 450 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.3627, allocations: 79.89 kB / 450.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-05/0.3628, allocations: 24.84 kB / 450.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3629, allocations: 8 kB / 450.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.3639, allocations: 1.375 MB / 451.5 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3639, allocations: 8.016 kB / 451.5 MB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.3651, allocations: 0.7071 MB / 452.2 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.3654, allocations: 216.4 kB / 452.4 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.739e-05/0.3655, allocations: 8 kB / 452.4 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000398/0.3659, allocations: 19.98 kB / 452.4 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/0.366, allocations: 31.91 kB / 452.4 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.366, allocations: 12 kB / 452.5 MB, free: 3.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008504/0.3668, allocations: 0.6054 MB / 453.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3669, allocations: 0 / 453.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0012/0.3681, allocations: 363.9 kB / 453.4 MB, free: 3.016 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.001603/0.3697, allocations: 1.29 MB / 454.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.3715, allocations: 0.97 MB / 455.7 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3715, allocations: 0 / 455.7 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004387/0.3719, allocations: 286.6 kB / 456 MB, free: 396 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.3731, allocations: 250.4 kB / 456.2 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.3843, allocations: 7.623 MB / 463.8 MB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000699/0.3851, allocations: 1.025 MB / 464.8 MB, free: 7.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005284/0.3856, allocations: 123.3 kB / 465 MB, free: 6.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005514/0.3862, allocations: 395.3 kB / 465.4 MB, free: 6.496 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3862, allocations: 0 / 465.4 MB, free: 6.496 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06199/0.4482, allocations: 19.8 MB / 485.2 MB, free: 2.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/13.02, allocations: 14.38 kB / 485.2 MB, free: 2.957 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.1.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