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.001331/0.001331, allocations: 121.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001252, allocations: 199.8 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2897, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009803/0.2995, allocations: 8.171 MB / 416.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005294/0.3049, allocations: 2.73 MB / 419.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.3061, allocations: 31.88 kB / 419.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.3078, allocations: 0.5317 MB / 420.2 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.3095, allocations: 440.4 kB / 420.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009405/0.3104, allocations: 358.8 kB / 421 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001968/0.3124, allocations: 1.499 MB / 422.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008709/0.3133, allocations: 0.6088 MB / 423.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000858/0.3142, allocations: 0.5641 MB / 423.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006735/0.3149, allocations: 0.6065 MB / 424.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.3151, allocations: 140 kB / 424.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.3154, allocations: 179.9 kB / 424.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.3156, allocations: 283 kB / 424.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006316/0.3163, allocations: 0.6647 MB / 425.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.3183, allocations: 1.732 MB / 427.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3183, allocations: 0 / 427.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3183, allocations: 0 / 427.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.686e-05/0.3183, allocations: 4 kB / 427.3 MB, free: 14.93 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.002744/0.3211, allocations: 1.503 MB / 428.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.3211, allocations: 12.02 kB / 428.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.3213, allocations: 148.3 kB / 428.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006338/0.322, allocations: 191.2 kB / 429.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.3234, allocations: 0.7976 MB / 429.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.563e-05/0.3234, allocations: 70 kB / 430 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.3236, allocations: 99.91 kB / 430.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.3252, allocations: 0.9623 MB / 431.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.3252, allocations: 3.938 kB / 431.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.761e-05/0.3253, allocations: 40 kB / 431.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/0.3253, allocations: 24 kB / 431.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.3265, allocations: 0.6363 MB / 431.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005448/0.332, allocations: 4.084 MB / 435.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009941/0.333, allocations: 433.4 kB / 436.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.3333, allocations: 160.8 kB / 436.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.3334, allocations: 4 kB / 436.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.3334, allocations: 38.56 kB / 436.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 3.136e-06/0.3334, allocations: 4 kB / 436.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002537/0.336, allocations: 1.315 MB / 437.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.3361, allocations: 140.5 kB / 437.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.3372, allocations: 0.8936 MB / 438.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.3373, allocations: 33.7 kB / 438.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004625/0.3377, allocations: 0.5875 MB / 439.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.3379, allocations: 150 kB / 439.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.3381, allocations: 138.4 kB / 439.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3382, allocations: 333.9 kB / 440 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.3386, allocations: 180.8 kB / 440.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/0.3392, allocations: 498.5 kB / 440.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009954/0.3402, allocations: 0.6868 MB / 441.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.3402, allocations: 4 kB / 441.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001292/0.3415, allocations: 0.747 MB / 442.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.3416, allocations: 12.16 kB / 442.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.3416, allocations: 12 kB / 442.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.3418, allocations: 32.84 kB / 442.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.3424, allocations: 171.7 kB / 442.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.3434, allocations: 1.382 MB / 443.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/0.344, allocations: 39.89 kB / 443.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.3441, allocations: 44.03 kB / 443.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005299/0.3446, allocations: 350.1 kB / 444.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004723/0.3451, allocations: 486.5 kB / 444.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007604/0.3459, allocations: 0.6639 MB / 445.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.801e-06/0.3459, allocations: 0 / 445.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001098/0.347, allocations: 0.723 MB / 446 MB, free: 10.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.347, allocations: 11.94 kB / 446 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3471, allocations: 12 kB / 446.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.676e-05/0.3472, allocations: 41.34 kB / 446.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.3477, allocations: 171.7 kB / 446.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009341/0.3486, allocations: 1.379 MB / 447.6 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005475/0.3492, allocations: 39.89 kB / 447.7 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.403e-05/0.3492, allocations: 36 kB / 447.7 MB, free: 9.031 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.0001984/0.3494, allocations: 235.9 kB / 448 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.3496, allocations: 94.94 kB / 448 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008256/0.3504, allocations: 435.4 kB / 448.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3504, allocations: 4 kB / 448.5 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3504, allocations: 0 / 448.5 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3505, allocations: 7.922 kB / 448.5 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.3526, allocations: 1.38 MB / 449.9 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.3526, allocations: 4 kB / 449.9 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.353, allocations: 80.11 kB / 449.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.893e-05/0.3531, allocations: 20.86 kB / 450 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.3532, allocations: 15.98 kB / 450 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.3542, allocations: 1.363 MB / 451.3 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3542, allocations: 4.031 kB / 451.3 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.3554, allocations: 0.7104 MB / 452.1 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/0.3557, allocations: 208 kB / 452.3 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.3559, allocations: 15.98 kB / 452.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.3563, allocations: 19.98 kB / 452.3 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.3564, allocations: 27.91 kB / 452.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.3564, allocations: 12 kB / 452.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009425/0.3574, allocations: 0.6054 MB / 452.9 MB, free: 3.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3574, allocations: 4 kB / 452.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001433/0.3588, allocations: 355.9 kB / 453.3 MB, free: 3.152 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.001641/0.3605, allocations: 1.278 MB / 454.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.3623, allocations: 0.9809 MB / 455.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3623, allocations: 0 / 455.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004468/0.3628, allocations: 288 kB / 455.8 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.3641, allocations: 254.1 kB / 456.1 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/0.3773, allocations: 7.579 MB / 463.7 MB, free: 8.242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000939/0.3783, allocations: 1.021 MB / 464.7 MB, free: 7.191 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007177/0.379, allocations: 119.3 kB / 464.8 MB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005919/0.3796, allocations: 391.3 kB / 465.2 MB, free: 6.688 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3797, allocations: 4 kB / 465.2 MB, free: 6.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05602/0.4357, allocations: 20.08 MB / 485.3 MB, free: 2.867 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.58, allocations: 18.31 kB / 485.3 MB, free: 2.859 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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