Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 96.58 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 194.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.00031, allocations: 8 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1419, allocations: 51.49 MB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004406/0.1464, allocations: 2.655 MB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.1487, allocations: 0.9431 MB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002968/0.149, allocations: 11.94 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.1494, allocations: 71.42 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003056/0.1497, allocations: 79.34 kB / 362 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007518/0.1505, allocations: 171.4 kB / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007344/0.1513, allocations: 463 kB / 362.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003706/0.1516, allocations: 139.5 kB / 362.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.1519, allocations: 151.2 kB / 363 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002938/0.1522, allocations: 167.1 kB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1523, allocations: 16 kB / 363.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.527e-05/0.1524, allocations: 16 kB / 363.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1525, allocations: 67.69 kB / 363.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1526, allocations: 93.45 kB / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.1531, allocations: 347.4 kB / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1531, allocations: 0 / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1531, allocations: 0 / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.1532, allocations: 8 kB / 363.6 MB, free: 8.34 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001692/0.1549, allocations: 0.7158 MB / 364.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.1549, allocations: 8.031 kB / 364.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.1551, allocations: 78.53 kB / 364.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.1552, allocations: 51.44 kB / 364.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.1558, allocations: 350.6 kB / 364.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.1559, allocations: 32.95 kB / 364.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-05/0.156, allocations: 39.98 kB / 364.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.1574, allocations: 475.2 kB / 365.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.1574, allocations: 3.906 kB / 365.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/0.1575, allocations: 16 kB / 365.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.1575, allocations: 12 kB / 365.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.159, allocations: 419.6 kB / 365.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.1621, allocations: 1.579 MB / 367.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.1633, allocations: 342.8 kB / 367.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006278/0.164, allocations: 184.8 kB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.02e-05/0.164, allocations: 4 kB / 367.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1641, allocations: 34.56 kB / 367.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.1641, allocations: 0 / 367.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.004823/0.1689, allocations: 1.526 MB / 369.5 MB, free: 2.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.169, allocations: 110.8 kB / 369.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005638/0.1696, allocations: 353.5 kB / 369.9 MB, free: 1.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.1697, allocations: 33.64 kB / 370 MB, free: 1.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.1699, allocations: 243.9 kB / 370.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/0.1701, allocations: 110.5 kB / 370.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.1702, allocations: 7.938 kB / 370.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.1704, allocations: 354.8 kB / 370.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006653/0.1711, allocations: 184.8 kB / 370.8 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007531/0.1718, allocations: 277.7 kB / 371.1 MB, free: 464 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007076/0.1725, allocations: 203.9 kB / 371.3 MB, free: 260 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1726, allocations: 0 / 371.3 MB, free: 260 kB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.1902/0.3628, allocations: 0.5155 MB / 371.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.86e-05/0.3629, allocations: 155.3 kB / 372 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.363, allocations: 2.734 kB / 372 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.363, allocations: 4.344 kB / 372 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009945/0.364, allocations: 263 kB / 372.2 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.3656, allocations: 1.545 MB / 373.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004172/0.366, allocations: 52.09 kB / 373.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.3661, allocations: 14.28 kB / 373.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.666e-06/0.3661, allocations: 3.5 kB / 373.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009903/0.3671, allocations: 436.3 kB / 374.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3671, allocations: 3 kB / 374.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.523e-06/0.3671, allocations: 4.219 kB / 374.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004986/0.3676, allocations: 135.7 kB / 374.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.3676, allocations: 5.125 kB / 374.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.3679, allocations: 51.31 kB / 374.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.368, allocations: 14.2 kB / 374.5 MB, free: 17.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.3682, allocations: 246.4 kB / 374.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.155e-05/0.3683, allocations: 40.58 kB / 374.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.746e-05/0.3683, allocations: 47.09 kB / 374.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3684, allocations: 3.469 kB / 374.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3684, allocations: 0 / 374.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3684, allocations: 7.062 kB / 374.8 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.3701, allocations: 0.9559 MB / 375.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.3701, allocations: 5.766 kB / 375.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.3705, allocations: 100.5 kB / 375.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.3706, allocations: 2.375 kB / 375.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.3706, allocations: 8.125 kB / 375.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.906e-06/0.3706, allocations: 6.953 kB / 375.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3706, allocations: 1.844 kB / 375.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3722, allocations: 0.7375 MB / 376.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.3724, allocations: 136.8 kB / 376.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.3725, allocations: 12.2 kB / 376.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.3728, allocations: 47.86 kB / 376.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.29e-05/0.3729, allocations: 28.84 kB / 376.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.3729, allocations: 9.844 kB / 376.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002811/0.3732, allocations: 243.9 kB / 377.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3732, allocations: 0 / 377.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005991/0.3738, allocations: 136.7 kB / 377.2 MB, free: 16.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001576/0.3754, allocations: 1.285 MB / 378.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.3773, allocations: 0.7943 MB / 379.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3774, allocations: 0 / 379.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004702/0.3778, allocations: 201.9 kB / 379.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006578/0.3785, allocations: 95.38 kB / 379.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004426/0.3829, allocations: 2.794 MB / 382.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.3833, allocations: 0.8161 MB / 383.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002953/0.3836, allocations: 62.19 kB / 383.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.3838, allocations: 141.5 kB / 383.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3838, allocations: 1.125 kB / 383.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02214/0.4059, allocations: 7.94 MB / 391.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.4061, allocations: 205.7 kB / 391.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.427, allocations: 0 / 391.6 MB, free: 10.96 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat