Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",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.00145/0.001455, allocations: 178.4 kB / 8.051 MB, free: 1.023 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.29/2.29, 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.001116/0.001116, allocations: 95.16 kB / 261.8 MB, free: 13.44 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.1084/0.1084, allocations: 12.59 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.131e-05, allocations: 0 / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.455/0.5592, allocations: 81.48 MB / 0.4989 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003747/0.5596, allocations: 78.66 kB / 0.499 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03507/0.5947, allocations: 7.08 MB / 0.5059 GB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5948, allocations: 4 kB / 0.5059 GB, free: 10.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.479e-05/0.5948, allocations: 7.688 kB / 0.5059 GB, free: 10.12 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00153/0.5964, allocations: 0.6099 MB / 0.5065 GB, free: 9.629 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5964, allocations: 11.56 kB / 0.5065 GB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.5966, allocations: 50.58 kB / 0.5066 GB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.597, allocations: 287.9 kB / 0.5068 GB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.5973, allocations: 131.5 kB / 0.507 GB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.868e-05/0.5974, allocations: 27.17 kB / 0.507 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001024/0.5985, allocations: 407.8 kB / 0.5074 GB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.5995, allocations: 455.9 kB / 0.5078 GB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.5995, allocations: 3.688 kB / 0.5078 GB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.535e-05/0.5996, allocations: 3.75 kB / 0.5078 GB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.5996, allocations: 7.844 kB / 0.5078 GB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.6017, allocations: 0.9881 MB / 0.5088 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.603, allocations: 396.3 kB / 0.5092 GB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.6034, allocations: 188.9 kB / 0.5094 GB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.032e-05/0.6035, allocations: 15.56 kB / 0.5094 GB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.6035, allocations: 37.44 kB / 0.5094 GB, free: 8.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.557e-06/0.6036, allocations: 0 / 0.5094 GB, free: 8.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.01361/0.6172, allocations: 2.033 MB / 0.5114 GB, free: 7.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.057e-05/0.6173, allocations: 145.3 kB / 0.5115 GB, free: 7.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.6177, allocations: 228 kB / 0.5118 GB, free: 7.309 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.6178, allocations: 25.7 kB / 0.5118 GB, free: 7.277 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.94e-05/0.6179, allocations: 150 kB / 0.5119 GB, free: 7.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.6181, allocations: 188.2 kB / 0.5121 GB, free: 7.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.6182, allocations: 0 / 0.5121 GB, free: 7.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.527e-05/0.6183, allocations: 347.5 kB / 0.5124 GB, free: 6.695 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.6193, allocations: 466.8 kB / 0.5129 GB, free: 6.688 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.6205, allocations: 0.6325 MB / 0.5135 GB, free: 6.461 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009001/0.6214, allocations: 417.1 kB / 0.5139 GB, free: 6.406 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.6214, allocations: 7.828 kB / 0.5139 GB, free: 6.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002584/0.624, allocations: 1.042 MB / 0.5149 GB, free: 6.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.6241, allocations: 10.06 kB / 0.5149 GB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.6241, allocations: 7.688 kB / 0.5149 GB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.488e-05/0.6242, allocations: 7.688 kB / 0.5149 GB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002537/0.6267, allocations: 231.5 kB / 0.5152 GB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.375e-05/0.6268, allocations: 19.45 kB / 0.5152 GB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.6286, allocations: 105.5 kB / 0.5153 GB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.6288, allocations: 28.52 kB / 0.5153 GB, free: 6.141 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.0003248/0.6291, allocations: 124.5 kB / 0.5154 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002409/0.6315, allocations: 0.9196 MB / 0.5163 GB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.6318, allocations: 38.72 kB / 0.5164 GB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002357/0.632, allocations: 57.77 kB / 0.5164 GB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.6321, allocations: 7.688 kB / 0.5164 GB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.6321, allocations: 0 / 0.5164 GB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.6321, allocations: 7.828 kB / 0.5164 GB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005516/0.6376, allocations: 1.914 MB / 0.5183 GB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.637e-05/0.6377, allocations: 15.53 kB / 0.5183 GB, free: 4.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/0.6391, allocations: 202.2 kB / 0.5185 GB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.316e-05/0.6392, allocations: 15.38 kB / 0.5185 GB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/0.6393, allocations: 19.41 kB / 0.5185 GB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.735e-05/0.6393, allocations: 19.42 kB / 0.5186 GB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.484e-05/0.6393, allocations: 23.42 kB / 0.5186 GB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.6415, allocations: 1.703 MB / 0.5202 GB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.6419, allocations: 185.9 kB / 0.5204 GB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.802e-05/0.642, allocations: 15.38 kB / 0.5204 GB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.6431, allocations: 92.36 kB / 0.5205 GB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.6434, allocations: 101.4 kB / 0.5206 GB, free: 3.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.641e-05/0.6435, allocations: 30.88 kB / 0.5206 GB, free: 3.078 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002202/0.6437, allocations: 181.8 kB / 0.5208 GB, free: 2.984 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6437, allocations: 0 / 0.5208 GB, free: 2.984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001081/0.6448, allocations: 100.2 kB / 0.5209 GB, free: 2.984 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * 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 (73): * Single equations (assignments): 73 * 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.003351/0.6482, allocations: 5.311 MB / 0.5261 GB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.6502, allocations: 0.8146 MB / 0.5269 GB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/0.6502, allocations: 5.375 kB / 0.5269 GB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006749/0.6509, allocations: 218.5 kB / 0.5271 GB, free: 13.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009731/0.6519, allocations: 112.5 kB / 0.5272 GB, free: 13.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/0.6558, allocations: 1.04 MB / 0.5282 GB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.6564, allocations: 0.8431 MB / 0.5291 GB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001072/0.6575, allocations: 95.53 kB / 0.5292 GB, free: 12.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005902/0.6581, allocations: 120.8 kB / 0.5293 GB, free: 12.36 MB / 346.7 MB Notification: Performance of SimCode: time 1.502e-06/0.6581, allocations: 0 / 0.5293 GB, free: 12.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06729/0.7254, allocations: 10.28 MB / 0.5393 GB, free: 2.801 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003159/0.7258, allocations: 169.1 kB / 0.5395 GB, free: 2.605 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.672/3.398, allocations: 0 / 0.5395 GB, free: 2.605 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat