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.001703/0.001702, allocations: 184.6 kB / 15.81 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00117/0.001169, allocations: 94.86 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09793/0.09793, allocations: 12.6 MB / 331.1 MB, free: 10.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005567/0.0005569, allocations: 15.03 kB / 392.1 MB, free: 54.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09249, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002598/0.09515, allocations: 1.761 MB / 444.2 MB, free: 9.035 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.09671, allocations: 0.6562 MB / 444.9 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.09696, allocations: 3.938 kB / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.09724, allocations: 31.83 kB / 444.9 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.09745, allocations: 51.84 kB / 445 MB, free: 8.285 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.09789, allocations: 95.81 kB / 445.1 MB, free: 8.191 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.09823, allocations: 207.6 kB / 445.3 MB, free: 7.988 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.09842, allocations: 60.11 kB / 445.3 MB, free: 7.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.09867, allocations: 123.6 kB / 445.4 MB, free: 7.809 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.09891, allocations: 131.5 kB / 445.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.09898, allocations: 19.94 kB / 445.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.247e-05/0.09904, allocations: 16 kB / 445.6 MB, free: 7.645 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.391e-05/0.09914, allocations: 59.86 kB / 445.7 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.763e-05/0.09921, allocations: 57.58 kB / 445.7 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.09948, allocations: 208.3 kB / 445.9 MB, free: 7.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.09949, allocations: 0 / 445.9 MB, free: 7.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.09951, allocations: 0 / 445.9 MB, free: 7.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.09952, allocations: 0 / 445.9 MB, free: 7.32 MB / 282.7 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.001555/0.1011, allocations: 0.5493 MB / 446.5 MB, free: 6.723 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.1012, allocations: 8.031 kB / 446.5 MB, free: 6.715 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.041e-05/0.1013, allocations: 62.53 kB / 446.5 MB, free: 6.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.659e-05/0.1014, allocations: 31.72 kB / 446.6 MB, free: 6.613 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.1017, allocations: 262.8 kB / 446.8 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/0.102, allocations: 133.6 kB / 447 MB, free: 6.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.95e-05/0.1021, allocations: 24 kB / 447 MB, free: 6.145 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.1034, allocations: 379.5 kB / 447.4 MB, free: 5.762 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.1035, allocations: 0 / 447.4 MB, free: 5.762 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.691e-05/0.1035, allocations: 12 kB / 447.4 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.1036, allocations: 8 kB / 447.4 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002353/0.1059, allocations: 0.5057 MB / 447.9 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.1086, allocations: 1.031 MB / 448.9 MB, free: 4.137 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00203/0.1106, allocations: 363 kB / 449.3 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.759e-05/0.1108, allocations: 4.234 kB / 449.3 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.1108, allocations: 38.73 kB / 449.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 3.516e-06/0.1108, allocations: 0 / 449.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=52): time 0.05952/0.1703, allocations: 6.663 MB / 456 MB, free: 12.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.1705, allocations: 59.84 kB / 456 MB, free: 12.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.1708, allocations: 198.3 kB / 456.2 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.134e-05/0.1709, allocations: 33.7 kB / 456.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1711, allocations: 148.6 kB / 456.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.1713, allocations: 177.4 kB / 456.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.609e-05/0.1714, allocations: 12 kB / 456.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1716, allocations: 342.8 kB / 456.9 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002518/0.1741, allocations: 496.8 kB / 457.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002605/0.1767, allocations: 0.5529 MB / 458 MB, free: 10.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.1791, allocations: 445.9 kB / 458.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1791, allocations: 0 / 458.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005441/0.1846, allocations: 1.049 MB / 459.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.1847, allocations: 11.94 kB / 459.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1847, allocations: 4.031 kB / 459.5 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.1847, allocations: 4 kB / 459.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/0.1867, allocations: 187.7 kB / 459.7 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.388e-05/0.1867, allocations: 7.984 kB / 459.7 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.1881, allocations: 103.9 kB / 459.8 MB, free: 9.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.963e-05/0.1882, allocations: 19.95 kB / 459.8 MB, free: 9.094 MB / 298.7 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.0003771/0.1886, allocations: 161.5 kB / 459.9 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.1888, allocations: 27.62 kB / 460 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/0.1889, allocations: 51.31 kB / 460 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.189, allocations: 8 kB / 460 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.189, allocations: 3.984 kB / 460 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.189, allocations: 4 kB / 460 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007605/0.1966, allocations: 1.988 MB / 462 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.929e-05/0.1967, allocations: 12.03 kB / 462 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.198, allocations: 159.8 kB / 462.2 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.443e-05/0.1981, allocations: 16 kB / 462.2 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.252e-05/0.1982, allocations: 23.94 kB / 462.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.791e-05/0.1982, allocations: 19.92 kB / 462.2 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/0.1982, allocations: 11.94 kB / 462.3 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005809/0.204, allocations: 1.744 MB / 464 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.2044, allocations: 144.8 kB / 464.1 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.2045, allocations: 27.98 kB / 464.2 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009867/0.2055, allocations: 87.92 kB / 464.3 MB, free: 4.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003393/0.2059, allocations: 99.66 kB / 464.4 MB, free: 3.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.437e-05/0.206, allocations: 20 kB / 464.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002769/0.2063, allocations: 148.3 kB / 464.5 MB, free: 3.816 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2063, allocations: 0 / 464.5 MB, free: 3.816 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007518/0.207, allocations: 96 kB / 464.6 MB, free: 3.723 MB / 298.7 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.007007/0.2141, allocations: 4.71 MB / 469.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004492/0.2186, allocations: 0.9196 MB / 470.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.729e-06/0.2187, allocations: 4 kB / 470.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001942/0.2206, allocations: 357.7 kB / 470.6 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/0.2213, allocations: 55.91 kB / 470.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.2344, allocations: 3.911 MB / 474.6 MB, free: 9.352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.235, allocations: 0.7921 MB / 475.4 MB, free: 8.535 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009103/0.2359, allocations: 83.23 kB / 475.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.2364, allocations: 91.42 kB / 475.5 MB, free: 8.359 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2365, allocations: 0 / 475.5 MB, free: 8.359 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04493/0.2814, allocations: 7.546 MB / 483.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000279/0.2817, allocations: 207.8 kB / 483.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.956/3.238, allocations: 0 / 483.3 MB, free: 0.5664 MB / 314.7 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