Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 98.5 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.3 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002896, allocations: 4 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.135, allocations: 51.48 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003431/0.1385, allocations: 1.798 MB / 360.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.1405, allocations: 0.6436 MB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.1407, allocations: 7.938 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003165/0.141, allocations: 39.7 kB / 360.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.1412, allocations: 39.77 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004598/0.1417, allocations: 91.88 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005072/0.1422, allocations: 307 kB / 361.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.1424, allocations: 56.36 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003527/0.1428, allocations: 131.5 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002791/0.1431, allocations: 127.5 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.461e-05/0.1432, allocations: 16 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.211e-05/0.1432, allocations: 19.94 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.1434, allocations: 67.78 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.611e-05/0.1435, allocations: 57.64 kB / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003071/0.1438, allocations: 195.7 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.1438, allocations: 4 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1438, allocations: 0 / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1438, allocations: 0 / 361.9 MB, free: 10.16 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001485/0.1453, allocations: 0.5493 MB / 362.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.1454, allocations: 12.03 kB / 362.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.1455, allocations: 62.55 kB / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.879e-05/0.1456, allocations: 35.72 kB / 362.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.1461, allocations: 242.3 kB / 362.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002946/0.1464, allocations: 149.5 kB / 362.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.1465, allocations: 24 kB / 362.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1477, allocations: 371.6 kB / 363.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.1478, allocations: 15.89 kB / 363.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.1478, allocations: 4 kB / 363.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1479, allocations: 4 kB / 363.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002103/0.15, allocations: 0.5175 MB / 363.8 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002718/0.1527, allocations: 1.031 MB / 364.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.1545, allocations: 351.1 kB / 365.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007778/0.1553, allocations: 189.2 kB / 365.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.1553, allocations: 4.234 kB / 365.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.1554, allocations: 38.8 kB / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.885e-06/0.1554, allocations: 0 / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.2966/0.4519, allocations: 6.657 MB / 372.1 MB, free: 20.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.452, allocations: 57.16 kB / 372.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.4524, allocations: 201.7 kB / 372.3 MB, free: 20.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.671e-05/0.4525, allocations: 35.7 kB / 372.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.4527, allocations: 150 kB / 372.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.4529, allocations: 174.3 kB / 372.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/0.453, allocations: 12.41 kB / 372.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.322e-05/0.4531, allocations: 339.3 kB / 373 MB, free: 19.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.4551, allocations: 499.2 kB / 373.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00218/0.4573, allocations: 0.5525 MB / 374.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.4592, allocations: 445.6 kB / 374.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4593, allocations: 1.188 kB / 374.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00432/0.4636, allocations: 1.059 MB / 375.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.4636, allocations: 6.156 kB / 375.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.4637, allocations: 1.375 kB / 375.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.4637, allocations: 8.156 kB / 375.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.4651, allocations: 187.2 kB / 375.8 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.796e-05/0.4651, allocations: 11.17 kB / 375.8 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000979/0.4661, allocations: 110.6 kB / 375.9 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.503e-05/0.4662, allocations: 15 kB / 375.9 MB, free: 19.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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 prepare postOptimizeDAE: time 0.000313/0.4665, allocations: 160.6 kB / 376.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.4667, allocations: 24.89 kB / 376.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001743/0.4669, allocations: 52.84 kB / 376.1 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.4669, allocations: 6.344 kB / 376.1 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.211e-05/0.4669, allocations: 2.75 kB / 376.1 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.4669, allocations: 2.156 kB / 376.1 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005315/0.4723, allocations: 1.99 MB / 378.1 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/0.4723, allocations: 8.516 kB / 378.1 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009127/0.4732, allocations: 165.4 kB / 378.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.646e-05/0.4733, allocations: 12.28 kB / 378.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.316e-05/0.4733, allocations: 25.08 kB / 378.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-05/0.4734, allocations: 21.5 kB / 378.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.558e-05/0.4734, allocations: 12.81 kB / 378.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003844/0.4773, allocations: 1.337 MB / 379.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.4775, allocations: 139.8 kB / 379.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.735e-05/0.4776, allocations: 23.09 kB / 379.9 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007479/0.4784, allocations: 97.33 kB / 380 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.4786, allocations: 89.66 kB / 380.1 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.054e-05/0.4787, allocations: 26.78 kB / 380.1 MB, free: 17.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.4789, allocations: 146.6 kB / 380.2 MB, free: 17.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4789, allocations: 0 / 380.2 MB, free: 17.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008452/0.4798, allocations: 97.78 kB / 380.3 MB, free: 17.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.004277/0.4841, allocations: 1.897 MB / 382.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003602/0.4877, allocations: 0.9178 MB / 383.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.4877, allocations: 1.219 kB / 383.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/0.4893, allocations: 366.7 kB / 383.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009583/0.4902, allocations: 65.42 kB / 383.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009893/0.5002, allocations: 3.296 MB / 386.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.5005, allocations: 0.7806 MB / 387.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007849/0.5013, allocations: 85.77 kB / 387.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/0.5017, allocations: 96.62 kB / 387.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.333e-06/0.5017, allocations: 0 / 387.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.5238, allocations: 7.579 MB / 395.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.524, allocations: 199.4 kB / 395.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.012/2.536, allocations: 0 / 395.6 MB, free: 9.254 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat