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.001593/0.001598, allocations: 189.1 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.149/2.149, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001201/0.001201, allocations: 90.84 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.09899/0.09899, allocations: 12.58 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005613/0.0005614, allocations: 16.48 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09621, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002897/0.09916, allocations: 1.963 MB / 444.4 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.1011, allocations: 0.8314 MB / 445.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002182/0.1013, allocations: 7.938 kB / 445.3 MB, free: 7.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002617/0.1016, allocations: 39.75 kB / 445.3 MB, free: 7.945 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.1019, allocations: 67.77 kB / 445.4 MB, free: 7.879 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007238/0.1026, allocations: 151.6 kB / 445.5 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003981/0.103, allocations: 244 kB / 445.8 MB, free: 7.488 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.1032, allocations: 77.88 kB / 445.8 MB, free: 7.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.1035, allocations: 143.4 kB / 446 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.1037, allocations: 151.4 kB / 446.1 MB, free: 7.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.1038, allocations: 20 kB / 446.2 MB, free: 7.109 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.568e-05/0.1039, allocations: 16 kB / 446.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.104, allocations: 83.7 kB / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.981e-05/0.1041, allocations: 73.52 kB / 446.3 MB, free: 6.934 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.1044, allocations: 252.2 kB / 446.6 MB, free: 6.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1044, allocations: 0 / 446.6 MB, free: 6.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1044, allocations: 0 / 446.6 MB, free: 6.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1044, allocations: 4 kB / 446.6 MB, free: 6.684 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001539/0.106, allocations: 0.6352 MB / 447.2 MB, free: 6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.106, allocations: 8.031 kB / 447.2 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.697e-05/0.1061, allocations: 70.53 kB / 447.3 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.701e-05/0.1062, allocations: 47.53 kB / 447.3 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.1067, allocations: 294 kB / 447.6 MB, free: 5.543 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.107, allocations: 145.7 kB / 447.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.243e-05/0.1071, allocations: 32 kB / 447.8 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.1088, allocations: 0.5737 MB / 448.4 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.1089, allocations: 4 kB / 448.4 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.1089, allocations: 12 kB / 448.4 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1089, allocations: 11.95 kB / 448.4 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002307/0.1113, allocations: 0.5269 MB / 448.9 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.1134, allocations: 1.045 MB / 450 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003665/0.1172, allocations: 0.5186 MB / 450.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.1174, allocations: 12.27 kB / 450.5 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.1174, allocations: 42.69 kB / 450.5 MB, free: 2.453 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 5.491e-06/0.1174, allocations: 4 kB / 450.5 MB, free: 2.449 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.1153/0.2328, allocations: 6.783 MB / 457.3 MB, free: 11.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.233, allocations: 149 kB / 457.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005769/0.2336, allocations: 258.5 kB / 457.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002062/0.2339, allocations: 33.7 kB / 457.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.234, allocations: 153.5 kB / 457.9 MB, free: 11.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004138/0.2345, allocations: 197.3 kB / 458.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/0.2347, allocations: 8 kB / 458.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002391/0.2349, allocations: 354.8 kB / 458.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004814/0.2398, allocations: 0.6461 MB / 459.1 MB, free: 9.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003394/0.2432, allocations: 0.8276 MB / 459.9 MB, free: 8.914 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/0.2463, allocations: 0.6021 MB / 460.5 MB, free: 8.312 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.2463, allocations: 0 / 460.5 MB, free: 8.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006963/0.2533, allocations: 1.476 MB / 462 MB, free: 6.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/0.2534, allocations: 11.95 kB / 462 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/0.2534, allocations: 4 kB / 462 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.272e-05/0.2534, allocations: 12.03 kB / 462 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/0.2561, allocations: 223.7 kB / 462.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.933e-05/0.2562, allocations: 19.92 kB / 462.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.258, allocations: 123.7 kB / 462.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.2582, allocations: 27.98 kB / 462.4 MB, free: 6.414 MB / 298.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0005232/0.2587, allocations: 189.4 kB / 462.6 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005434/0.2593, allocations: 161.5 kB / 462.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.2595, allocations: 71.56 kB / 462.8 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.2595, allocations: 8.094 kB / 462.8 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.2595, allocations: 3.938 kB / 462.8 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.2596, allocations: 7.984 kB / 462.8 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009552/0.2691, allocations: 2.301 MB / 465.1 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.292e-05/0.2692, allocations: 16.06 kB / 465.2 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.2709, allocations: 195.8 kB / 465.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.149e-05/0.271, allocations: 16 kB / 465.4 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.2711, allocations: 27.95 kB / 465.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.362e-05/0.2711, allocations: 23.86 kB / 465.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-05/0.2712, allocations: 15.94 kB / 465.4 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006672/0.2778, allocations: 2.177 MB / 467.6 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.2784, allocations: 180.7 kB / 467.8 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.2785, allocations: 27.98 kB / 467.8 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.2796, allocations: 91.98 kB / 467.9 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003526/0.28, allocations: 111.6 kB / 468 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.2801, allocations: 36 kB / 468.1 MB, free: 136 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003149/0.2804, allocations: 185.9 kB / 468.2 MB, free: 15.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2804, allocations: 0 / 468.2 MB, free: 15.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009904/0.2814, allocations: 124 kB / 468.4 MB, free: 15.83 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.008513/0.29, allocations: 5.763 MB / 474.1 MB, free: 9.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005645/0.2957, allocations: 1.194 MB / 475.3 MB, free: 8.555 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-05/0.2958, allocations: 4 kB / 475.3 MB, free: 8.551 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002192/0.298, allocations: 370.6 kB / 475.7 MB, free: 8.191 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.2992, allocations: 156.6 kB / 475.8 MB, free: 8.035 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01834/0.3176, allocations: 7.959 MB / 483.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006501/0.3183, allocations: 0.8405 MB / 484.6 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00112/0.3195, allocations: 88.17 kB / 484.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/0.3202, allocations: 123.4 kB / 484.8 MB, free: 14.72 MB / 330.7 MB Notification: Performance of SimCode: time 1.754e-06/0.3202, allocations: 0 / 484.8 MB, free: 14.72 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05468/0.3749, allocations: 10.61 MB / 495.5 MB, free: 4.094 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002954/0.3752, allocations: 204.5 kB / 495.7 MB, free: 3.852 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.917/3.292, allocations: 0 / 495.7 MB, free: 3.852 MB / 330.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