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.002229/0.002229, allocations: 177.7 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.327/2.327, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001077/0.001077, allocations: 91.47 kB / 261.8 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1435/0.1435, allocations: 12.58 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.163e-05, allocations: 0 / 379 MB, free: 75.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 50.38 MB / 429.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4972/0.6264, allocations: 80.21 MB / 0.4977 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.6267, allocations: 69.08 kB / 0.4977 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02481/0.6516, allocations: 5.539 MB / 0.5031 GB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6516, allocations: 0 / 0.5031 GB, free: 10.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.6516, allocations: 4.031 kB / 0.5031 GB, free: 10.75 MB / 330.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.0014/0.6531, allocations: 0.5501 MB / 0.5037 GB, free: 10.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.6531, allocations: 7.688 kB / 0.5037 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.6532, allocations: 31.09 kB / 0.5037 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.6536, allocations: 238.3 kB / 0.504 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002543/0.6539, allocations: 130.8 kB / 0.5041 GB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.448e-05/0.654, allocations: 19.11 kB / 0.5041 GB, free: 9.934 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009411/0.6549, allocations: 384.5 kB / 0.5045 GB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007317/0.6557, allocations: 272.6 kB / 0.5047 GB, free: 9.801 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.6557, allocations: 0 / 0.5047 GB, free: 9.801 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.6558, allocations: 3.938 kB / 0.5047 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.6558, allocations: 3.75 kB / 0.5047 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.6583, allocations: 0.9894 MB / 0.5057 GB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007889/0.6592, allocations: 242.5 kB / 0.5059 GB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.6595, allocations: 117.9 kB / 0.506 GB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.6595, allocations: 7.875 kB / 0.506 GB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.6596, allocations: 37.97 kB / 0.5061 GB, free: 9.105 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.635e-06/0.6596, allocations: 0 / 0.5061 GB, free: 9.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.01236/0.6719, allocations: 2.97 MB / 0.509 GB, free: 8.047 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.672, allocations: 63.55 kB / 0.509 GB, free: 7.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.6723, allocations: 172 kB / 0.5092 GB, free: 7.875 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.059e-05/0.6724, allocations: 25.7 kB / 0.5092 GB, free: 7.844 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.916e-05/0.6725, allocations: 153.6 kB / 0.5094 GB, free: 7.715 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.6727, allocations: 165.6 kB / 0.5095 GB, free: 7.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.834e-05/0.6728, allocations: 4 kB / 0.5095 GB, free: 7.586 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.89e-05/0.6729, allocations: 340.3 kB / 0.5099 GB, free: 7.262 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008034/0.6737, allocations: 315.2 kB / 0.5102 GB, free: 7.254 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007844/0.6745, allocations: 374 kB / 0.5105 GB, free: 7.199 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005929/0.6751, allocations: 259.4 kB / 0.5108 GB, free: 7.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.6752, allocations: 0 / 0.5108 GB, free: 7.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00168/0.6768, allocations: 0.6678 MB / 0.5114 GB, free: 7.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.6769, allocations: 13.98 kB / 0.5114 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.6769, allocations: 3.984 kB / 0.5114 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.677, allocations: 3.969 kB / 0.5114 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/0.6788, allocations: 186.5 kB / 0.5116 GB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.6789, allocations: 4.531 kB / 0.5116 GB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.6802, allocations: 101.1 kB / 0.5117 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.6803, allocations: 15.44 kB / 0.5117 GB, free: 6.98 MB / 330.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002406/0.6806, allocations: 112.9 kB / 0.5118 GB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001409/0.682, allocations: 0.526 MB / 0.5124 GB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.6822, allocations: 34.95 kB / 0.5124 GB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.6823, allocations: 38.91 kB / 0.5124 GB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.6823, allocations: 3.969 kB / 0.5124 GB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.6824, allocations: 0 / 0.5124 GB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.6824, allocations: 3.984 kB / 0.5124 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00467/0.6871, allocations: 1.625 MB / 0.514 GB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.6871, allocations: 7.688 kB / 0.514 GB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.6885, allocations: 167.1 kB / 0.5142 GB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.962e-05/0.6885, allocations: 15.47 kB / 0.5142 GB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.257e-05/0.6886, allocations: 11.69 kB / 0.5142 GB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-05/0.6886, allocations: 23.41 kB / 0.5142 GB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.334e-05/0.6886, allocations: 11.66 kB / 0.5142 GB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.6906, allocations: 1.297 MB / 0.5155 GB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/0.6909, allocations: 147.2 kB / 0.5157 GB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.571e-05/0.691, allocations: 15.72 kB / 0.5157 GB, free: 4.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009759/0.692, allocations: 85.73 kB / 0.5158 GB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.6924, allocations: 97 kB / 0.5158 GB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.657e-05/0.6925, allocations: 22.12 kB / 0.5159 GB, free: 4.477 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001993/0.6927, allocations: 138.1 kB / 0.516 GB, free: 4.395 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6927, allocations: 3.812 kB / 0.516 GB, free: 4.395 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007356/0.6935, allocations: 82.84 kB / 0.5161 GB, free: 4.391 MB / 330.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.002545/0.696, allocations: 4.255 MB / 0.5202 GB, free: 16.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.6975, allocations: 0.5796 MB / 0.5208 GB, free: 16.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.6975, allocations: 3.719 kB / 0.5208 GB, free: 16.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006094/0.6981, allocations: 209.2 kB / 0.521 GB, free: 16.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006339/0.6988, allocations: 42.22 kB / 0.521 GB, free: 16.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.7017, allocations: 0.8708 MB / 0.5219 GB, free: 15.69 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.7023, allocations: 0.7892 MB / 0.5227 GB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008466/0.7031, allocations: 74.31 kB / 0.5227 GB, free: 14.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/0.7036, allocations: 96.91 kB / 0.5228 GB, free: 14.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7036, allocations: 0 / 0.5228 GB, free: 14.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04902/0.7526, allocations: 7.266 MB / 0.5299 GB, free: 10.91 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003586/0.7531, allocations: 172.2 kB / 0.5301 GB, free: 10.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.641/3.394, allocations: 3.281 kB / 0.5301 GB, free: 10.71 MB / 346.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