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.0009583/0.0009583, allocations: 94.97 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 207.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002477, allocations: 8 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1205, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007016/0.1276, allocations: 6.629 MB / 364.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005346/0.133, allocations: 2.605 MB / 367.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.1344, allocations: 23.94 kB / 367.5 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001497/0.1359, allocations: 437.8 kB / 367.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002081/0.138, allocations: 462.6 kB / 368.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.1391, allocations: 259.1 kB / 368.6 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002645/0.1418, allocations: 1.046 MB / 369.6 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007561/0.1425, allocations: 444.4 kB / 370.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005679/0.1431, allocations: 422.2 kB / 370.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004918/0.1436, allocations: 473.6 kB / 371 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.552e-05/0.1437, allocations: 64 kB / 371 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.144, allocations: 99.91 kB / 371.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.1442, allocations: 183.2 kB / 371.3 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.1444, allocations: 257 kB / 371.5 MB, free: 376 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1934/0.3378, allocations: 1.276 MB / 372.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3378, allocations: 0 / 372.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3379, allocations: 0.75 kB / 372.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.741e-05/0.3379, allocations: 0 / 372.8 MB, free: 10.98 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.002296/0.3402, allocations: 1.293 MB / 374.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3403, allocations: 9.812 kB / 374.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001766/0.3405, allocations: 150.5 kB / 374.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004777/0.3409, allocations: 176.6 kB / 374.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.342, allocations: 0.7456 MB / 375.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-05/0.3421, allocations: 76.67 kB / 375.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.3423, allocations: 102 kB / 375.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.3443, allocations: 0.9477 MB / 376.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/0.3443, allocations: 10.72 kB / 376.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.456e-05/0.3444, allocations: 41.28 kB / 376.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.034e-05/0.3445, allocations: 25.12 kB / 376.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.3457, allocations: 0.6402 MB / 377 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004986/0.3507, allocations: 4.083 MB / 381.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.3518, allocations: 458 kB / 381.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.3518, allocations: 5.562 kB / 381.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.3519, allocations: 40.64 kB / 381.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.544e-06/0.3519, allocations: 0 / 381.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002642/0.3545, allocations: 1.349 MB / 382.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.3546, allocations: 137.4 kB / 383.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.3559, allocations: 0.8344 MB / 383.9 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.3559, allocations: 37.73 kB / 384 MB, free: 6.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003599/0.3563, allocations: 0.5912 MB / 384.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.119e-05/0.3564, allocations: 142.3 kB / 384.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/0.3564, allocations: 15.78 kB / 384.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.315e-05/0.3565, allocations: 332.1 kB / 385 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.3568, allocations: 172 kB / 385.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004718/0.3573, allocations: 498.6 kB / 385.7 MB, free: 5.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004154/0.3577, allocations: 250 kB / 385.9 MB, free: 5.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.443e-06/0.3577, allocations: 2.719 kB / 385.9 MB, free: 5.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001215/0.3589, allocations: 0.7479 MB / 386.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008629/0.3598, allocations: 4.095 MB / 390.8 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.3598, allocations: 10.44 kB / 390.8 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.36, allocations: 36.27 kB / 390.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006297/0.3607, allocations: 176.5 kB / 391 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009289/0.3616, allocations: 1.294 MB / 392.3 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.3622, allocations: 38.69 kB / 392.3 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.3623, allocations: 36.75 kB / 392.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.245e-06/0.3623, allocations: 3.531 kB / 392.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001038/0.3633, allocations: 0.607 MB / 393 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.3634, allocations: 17.72 kB / 393 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-05/0.3635, allocations: 44.5 kB / 393 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.364, allocations: 168 kB / 393.2 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.3651, allocations: 1.295 MB / 394.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005291/0.3656, allocations: 31.48 kB / 394.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.3657, allocations: 36.12 kB / 394.5 MB, free: 14.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006351/0.3663, allocations: 338.4 kB / 394.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.3665, allocations: 102.5 kB / 395 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008283/0.3673, allocations: 440.8 kB / 395.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3673, allocations: 4.844 kB / 395.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.3674, allocations: 4 kB / 395.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3674, allocations: 4.156 kB / 395.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.3695, allocations: 1.354 MB / 396.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3695, allocations: 3.938 kB / 396.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/0.3699, allocations: 87.31 kB / 396.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.639e-05/0.37, allocations: 23.22 kB / 396.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.37, allocations: 8.281 kB / 396.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00103/0.3711, allocations: 1.283 MB / 398.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3711, allocations: 9.719 kB / 398.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.3723, allocations: 0.8108 MB / 399 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.3726, allocations: 197.3 kB / 399.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.964e-05/0.3727, allocations: 9.406 kB / 399.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.3731, allocations: 22.83 kB / 399.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.359e-05/0.3732, allocations: 26.94 kB / 399.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.3732, allocations: 17.03 kB / 399.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008811/0.3741, allocations: 0.5542 MB / 399.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.01e-07/0.3741, allocations: 0 / 399.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001693/0.3758, allocations: 356.2 kB / 400.2 MB, free: 11.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002126/0.3779, allocations: 1.852 MB / 402 MB, free: 9.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.3798, allocations: 0.9767 MB / 403 MB, free: 9.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3798, allocations: 0 / 403 MB, free: 9.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.3802, allocations: 289.9 kB / 403.3 MB, free: 9.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.3815, allocations: 230.3 kB / 403.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/0.3964, allocations: 12.34 MB / 415.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006842/0.3972, allocations: 1.044 MB / 416.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007085/0.3979, allocations: 121.7 kB / 417 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000485/0.3984, allocations: 392.9 kB / 417.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3984, allocations: 0 / 417.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03603/0.4344, allocations: 17.71 MB / 435.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.4347, allocations: 226.1 kB / 435.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.671, allocations: 0 / 435.3 MB, free: 12.09 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat