Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001072, allocations: 176.3 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 222 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008126/0.0008137, allocations: 94.3 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08623/0.08623, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004444, allocations: 17.34 kB / 392.1 MB, free: 54.82 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1011, allocations: 50.38 MB / 442.5 MB, free: 10.88 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002056/0.1032, allocations: 1.783 MB / 444.3 MB, free: 9.074 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0009841/0.1042, allocations: 0.6562 MB / 444.9 MB, free: 8.41 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.1044, allocations: 7.938 kB / 444.9 MB, free: 8.402 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0003329/0.1047, allocations: 31.83 kB / 445 MB, free: 8.371 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.1049, allocations: 43.69 kB / 445 MB, free: 8.328 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000323/0.1053, allocations: 99.86 kB / 445.1 MB, free: 8.23 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.1055, allocations: 295.2 kB / 445.4 MB, free: 7.941 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.1057, allocations: 56.12 kB / 445.5 MB, free: 7.887 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.1059, allocations: 123.5 kB / 445.6 MB, free: 7.766 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.1061, allocations: 131.5 kB / 445.7 MB, free: 7.637 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 4.361e-05/0.1062, allocations: 19.98 kB / 445.7 MB, free: 7.617 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.041e-05/0.1062, allocations: 19.94 kB / 445.7 MB, free: 7.598 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 5.812e-05/0.1063, allocations: 59.8 kB / 445.8 MB, free: 7.539 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 4.936e-05/0.1064, allocations: 61.64 kB / 445.9 MB, free: 7.473 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.1065, allocations: 200.3 kB / 446.1 MB, free: 7.277 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1065, allocations: 0 / 446.1 MB, free: 7.277 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1065, allocations: 0 / 446.1 MB, free: 7.277 MB / 282.8 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1066, allocations: 7.938 kB / 446.1 MB, free: 7.27 MB / 282.8 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.001113/0.1077, allocations: 0.5493 MB / 446.6 MB, free: 6.672 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1077, allocations: 8.031 kB / 446.6 MB, free: 6.664 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.1078, allocations: 58.55 kB / 446.7 MB, free: 6.598 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.001e-05/0.1079, allocations: 35.72 kB / 446.7 MB, free: 6.562 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.1082, allocations: 246.9 kB / 447 MB, free: 6.285 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.1083, allocations: 141.6 kB / 447.1 MB, free: 6.125 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.1084, allocations: 24 kB / 447.1 MB, free: 6.102 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/0.1092, allocations: 383.5 kB / 447.5 MB, free: 5.715 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1092, allocations: 0 / 447.5 MB, free: 5.715 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.1093, allocations: 12 kB / 447.5 MB, free: 5.703 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1093, allocations: 4 kB / 447.5 MB, free: 5.699 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.1104, allocations: 0.5135 MB / 448 MB, free: 5.188 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.1121, allocations: 1.034 MB / 449.1 MB, free: 4.082 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1132, allocations: 355.1 kB / 449.4 MB, free: 3.727 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004355/0.1136, allocations: 193.1 kB / 449.6 MB, free: 3.535 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.1137, allocations: 4.234 kB / 449.6 MB, free: 3.531 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.1137, allocations: 38.8 kB / 449.6 MB, free: 3.484 MB / 282.8 MB Notification: Performance of pre-optimization done (n=28): time 2.424e-06/0.1137, allocations: 0 / 449.6 MB, free: 3.484 MB / 282.8 MB Notification: Performance of matching and sorting (n=52): time 0.02714/0.1409, allocations: 6.667 MB / 456.3 MB, free: 12.73 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.1409, allocations: 55.84 kB / 456.3 MB, free: 12.66 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003814/0.1414, allocations: 202.3 kB / 456.5 MB, free: 12.45 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.1414, allocations: 41.64 kB / 456.6 MB, free: 12.41 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1415, allocations: 144.6 kB / 456.7 MB, free: 12.26 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.1417, allocations: 177.4 kB / 456.9 MB, free: 12.08 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.1418, allocations: 8 kB / 456.9 MB, free: 12.07 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1419, allocations: 342.8 kB / 457.2 MB, free: 11.73 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.1433, allocations: 0.4891 MB / 457.7 MB, free: 11.24 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.1447, allocations: 0.5529 MB / 458.3 MB, free: 10.67 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.146, allocations: 441.9 kB / 458.7 MB, free: 10.24 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.146, allocations: 0 / 458.7 MB, free: 10.24 MB / 298.8 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002945/0.149, allocations: 1.057 MB / 459.8 MB, free: 9.18 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.149, allocations: 4 kB / 459.8 MB, free: 9.176 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.149, allocations: 4 kB / 459.8 MB, free: 9.172 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1491, allocations: 4 kB / 459.8 MB, free: 9.168 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.1501, allocations: 191.8 kB / 460 MB, free: 8.98 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.1501, allocations: 7.938 kB / 460 MB, free: 8.973 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000723/0.1509, allocations: 107.8 kB / 460.1 MB, free: 8.867 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/0.1509, allocations: 16 kB / 460.1 MB, free: 8.852 MB / 298.8 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.0002962/0.1512, allocations: 169.5 kB / 460.3 MB, free: 8.676 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-05/0.1513, allocations: 31.62 kB / 460.3 MB, free: 8.645 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.1514, allocations: 47.31 kB / 460.3 MB, free: 8.598 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.1515, allocations: 7.984 kB / 460.4 MB, free: 8.59 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1515, allocations: 0 / 460.4 MB, free: 8.59 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1515, allocations: 0 / 460.4 MB, free: 8.59 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004676/0.1562, allocations: 1.991 MB / 462.3 MB, free: 6.434 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/0.1562, allocations: 8 kB / 462.4 MB, free: 6.426 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006947/0.1569, allocations: 172.2 kB / 462.5 MB, free: 6.258 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.782e-05/0.1569, allocations: 12 kB / 462.5 MB, free: 6.246 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.157, allocations: 20 kB / 462.6 MB, free: 6.227 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.157, allocations: 11.98 kB / 462.6 MB, free: 6.215 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.749e-06/0.157, allocations: 15.94 kB / 462.6 MB, free: 6.199 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003115/0.1601, allocations: 1.337 MB / 463.9 MB, free: 4.734 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.1603, allocations: 136.8 kB / 464 MB, free: 4.582 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001798/0.1605, allocations: 27.98 kB / 464.1 MB, free: 4.555 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005527/0.1611, allocations: 95.86 kB / 464.2 MB, free: 4.461 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.1613, allocations: 87.72 kB / 464.3 MB, free: 4.375 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.1614, allocations: 24 kB / 464.3 MB, free: 4.352 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.000167/0.1615, allocations: 152.2 kB / 464.4 MB, free: 4.203 MB / 298.8 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1615, allocations: 0 / 464.4 MB, free: 4.203 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0005045/0.1621, allocations: 92 kB / 464.5 MB, free: 4.113 MB / 298.8 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.003287/0.1653, allocations: 1.899 MB / 466.4 MB, free: 2.082 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.1679, allocations: 0.9079 MB / 467.3 MB, free: 1.176 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.1679, allocations: 4.188 kB / 467.3 MB, free: 1.172 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0009734/0.1689, allocations: 365.5 kB / 467.7 MB, free: 0.8164 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007897/0.1697, allocations: 71.94 kB / 467.8 MB, free: 0.7461 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008439/0.1781, allocations: 3.313 MB / 471.1 MB, free: 13.27 MB / 314.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.1787, allocations: 0.7765 MB / 471.8 MB, free: 12.47 MB / 314.8 MB Notification: Performance of simCode: alias equations: time 0.000617/0.1794, allocations: 75.25 kB / 471.9 MB, free: 12.39 MB / 314.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003026/0.1797, allocations: 101.2 kB / 472 MB, free: 12.3 MB / 314.8 MB Notification: Performance of SimCode: time 9.12e-07/0.1797, allocations: 0 / 472 MB, free: 12.3 MB / 314.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.2043, allocations: 7.575 MB / 479.6 MB, free: 4.719 MB / 314.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.2045, allocations: 214.2 kB / 479.8 MB, free: 4.473 MB / 314.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.117/2.322, allocations: 0 / 479.8 MB, free: 4.473 MB / 314.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat