Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 113.5 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 200 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 43.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2894, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.0096/0.299, allocations: 8.157 MB / 408.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004766/0.3038, allocations: 2.698 MB / 411.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.305, allocations: 31.88 kB / 411.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.3064, allocations: 0.563 MB / 411.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001006/0.3074, allocations: 472.5 kB / 412.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.3081, allocations: 355.5 kB / 412.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.3095, allocations: 1.501 MB / 414 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007995/0.3103, allocations: 0.6126 MB / 414.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005822/0.3109, allocations: 0.5603 MB / 415.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005714/0.3114, allocations: 0.5987 MB / 415.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.3116, allocations: 140 kB / 415.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002958/0.3119, allocations: 184 kB / 416.1 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.3121, allocations: 290.9 kB / 416.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005086/0.3126, allocations: 0.6647 MB / 417 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001586/0.3142, allocations: 1.727 MB / 418.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3142, allocations: 0 / 418.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3142, allocations: 0 / 418.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.3143, allocations: 0 / 418.8 MB, free: 6.18 MB / 334.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.002282/0.3166, allocations: 1.545 MB / 420.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.3166, allocations: 12.03 kB / 420.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000154/0.3168, allocations: 144.3 kB / 420.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005937/0.3174, allocations: 200 kB / 420.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.3185, allocations: 0.8099 MB / 421.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.222e-05/0.3186, allocations: 74 kB / 421.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.3187, allocations: 99.95 kB / 421.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.3202, allocations: 0.9536 MB / 422.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.3202, allocations: 0 / 422.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.3203, allocations: 43.94 kB / 422.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.3203, allocations: 24 kB / 422.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.3215, allocations: 0.6363 MB / 423.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004686/0.3262, allocations: 4.089 MB / 427.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009585/0.3271, allocations: 427.7 kB / 427.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.3274, allocations: 165.4 kB / 428 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.3275, allocations: 7.984 kB / 428 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.3275, allocations: 38.56 kB / 428 MB, free: 12.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 3.186e-06/0.3275, allocations: 3.984 kB / 428 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002173/0.3297, allocations: 1.336 MB / 429.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3298, allocations: 106.8 kB / 429.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.3308, allocations: 0.9092 MB / 430.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.3308, allocations: 29.7 kB / 430.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.3312, allocations: 0.6047 MB / 431 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.3313, allocations: 158.7 kB / 431.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.3315, allocations: 134.6 kB / 431.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3316, allocations: 334 kB / 431.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.3319, allocations: 180.8 kB / 431.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/0.3324, allocations: 485.7 kB / 432.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008428/0.3333, allocations: 0.687 MB / 433 MB, free: 7.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3333, allocations: 0 / 433 MB, free: 7.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00119/0.3345, allocations: 0.7546 MB / 433.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3345, allocations: 8.75 kB / 433.7 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.3345, allocations: 12 kB / 433.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.3347, allocations: 36.86 kB / 433.8 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000552/0.3352, allocations: 167.7 kB / 433.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009902/0.3362, allocations: 1.394 MB / 435.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.3368, allocations: 35.98 kB / 435.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.851e-05/0.3368, allocations: 32 kB / 435.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004847/0.3373, allocations: 354 kB / 435.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004363/0.3378, allocations: 481.8 kB / 436.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007413/0.3385, allocations: 0.6597 MB / 436.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.048e-05/0.3385, allocations: 7.984 kB / 436.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001095/0.3396, allocations: 0.7281 MB / 437.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3397, allocations: 11.98 kB / 437.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3397, allocations: 12 kB / 437.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.628e-05/0.3398, allocations: 32.8 kB / 437.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005089/0.3403, allocations: 171.7 kB / 437.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009013/0.3412, allocations: 1.391 MB / 439.2 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004999/0.3417, allocations: 35.94 kB / 439.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/0.3418, allocations: 40 kB / 439.3 MB, free: 228 kB / 350.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.0001891/0.342, allocations: 232.1 kB / 439.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.3421, allocations: 99.33 kB / 439.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007629/0.3429, allocations: 431.6 kB / 440 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3429, allocations: 8 kB / 440 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3429, allocations: 0 / 440 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3429, allocations: 3.938 kB / 440 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.3449, allocations: 1.38 MB / 441.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3449, allocations: 4 kB / 441.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.3453, allocations: 75.89 kB / 441.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.08e-05/0.3454, allocations: 25.06 kB / 441.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.594e-05/0.3454, allocations: 12 kB / 441.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009441/0.3464, allocations: 1.375 MB / 442.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3464, allocations: 3.938 kB / 442.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3474, allocations: 0.7224 MB / 443.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000258/0.3477, allocations: 212.4 kB / 443.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.3478, allocations: 12 kB / 443.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.3482, allocations: 23.98 kB / 443.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.535e-05/0.3482, allocations: 23.97 kB / 443.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.3483, allocations: 12 kB / 443.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008211/0.3491, allocations: 0.6054 MB / 444.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3491, allocations: 0 / 444.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001158/0.3503, allocations: 352 kB / 444.9 MB, free: 10.33 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.00144/0.3517, allocations: 1.289 MB / 446.2 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.3533, allocations: 0.9824 MB / 447.1 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3533, allocations: 0 / 447.1 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004057/0.3537, allocations: 282.4 kB / 447.4 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.3549, allocations: 237.9 kB / 447.6 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.3657, allocations: 7.648 MB / 455.3 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.3663, allocations: 1.025 MB / 456.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005134/0.3668, allocations: 123.3 kB / 456.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/0.3673, allocations: 391.3 kB / 456.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3673, allocations: 0 / 456.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04827/0.4156, allocations: 19.79 MB / 476.6 MB, free: 10.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.42, allocations: 11.06 kB / 476.6 MB, free: 10.3 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches