Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",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.001197/0.001197, allocations: 174.6 kB / 15.81 MB, free: 6.285 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.654/1.654, allocations: 205.4 MB / 222 MB, free: 13.84 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.0008248/0.0008249, allocations: 86.31 kB / 270.3 MB, free: 13.37 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.07222/0.07222, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005588/0.000559, allocations: 14.64 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1034, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.003298/0.1068, allocations: 1.958 MB / 444.4 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1088, allocations: 0.8119 MB / 445.3 MB, free: 8.043 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.109, allocations: 7.938 kB / 445.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.1093, allocations: 39.77 kB / 445.3 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.1095, allocations: 39.69 kB / 445.3 MB, free: 7.957 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007631/0.1103, allocations: 145 kB / 445.5 MB, free: 7.816 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.1107, allocations: 347.5 kB / 445.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.1109, allocations: 78.23 kB / 445.9 MB, free: 7.398 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002568/0.1112, allocations: 127.5 kB / 446 MB, free: 7.273 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.1115, allocations: 147.4 kB / 446.2 MB, free: 7.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.1115, allocations: 16 kB / 446.2 MB, free: 7.113 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.478e-05/0.1116, allocations: 16 kB / 446.2 MB, free: 7.098 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.1118, allocations: 87.64 kB / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.727e-05/0.1119, allocations: 69.58 kB / 446.4 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.1122, allocations: 224.2 kB / 446.6 MB, free: 6.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1122, allocations: 0 / 446.6 MB, free: 6.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1122, allocations: 4 kB / 446.6 MB, free: 6.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1122, allocations: 0 / 446.6 MB, free: 6.715 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001552/0.1138, allocations: 0.5849 MB / 447.2 MB, free: 6.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.574e-05/0.1139, allocations: 8.031 kB / 447.2 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.153e-05/0.114, allocations: 74.53 kB / 447.2 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.963e-05/0.1141, allocations: 39.62 kB / 447.3 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1145, allocations: 267.1 kB / 447.5 MB, free: 5.652 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.1148, allocations: 145.7 kB / 447.7 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.974e-05/0.1149, allocations: 35.91 kB / 447.7 MB, free: 5.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.1167, allocations: 0.5736 MB / 448.3 MB, free: 4.852 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.1167, allocations: 0 / 448.3 MB, free: 4.852 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/0.1168, allocations: 15.94 kB / 448.3 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1168, allocations: 11.95 kB / 448.3 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002273/0.1191, allocations: 0.5386 MB / 448.9 MB, free: 4.285 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.1213, allocations: 1.018 MB / 449.9 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.1239, allocations: 0.5183 MB / 450.4 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.125, allocations: 279.8 kB / 450.7 MB, free: 2.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-05/0.1251, allocations: 4.188 kB / 450.7 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.1251, allocations: 46.69 kB / 450.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 3.657e-06/0.1251, allocations: 0 / 450.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.06768/0.1928, allocations: 6.737 MB / 457.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.1931, allocations: 156.9 kB / 457.6 MB, free: 11.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.1934, allocations: 199.3 kB / 457.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.1935, allocations: 37.7 kB / 457.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.1937, allocations: 149.5 kB / 458 MB, free: 10.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002925/0.194, allocations: 193.3 kB / 458.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.1941, allocations: 8 kB / 458.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1943, allocations: 346.8 kB / 458.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002772/0.1971, allocations: 0.6539 MB / 459.2 MB, free: 9.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003196/0.2003, allocations: 0.8315 MB / 460 MB, free: 8.859 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003022/0.2034, allocations: 0.602 MB / 460.6 MB, free: 8.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.722e-05/0.2034, allocations: 4 kB / 460.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005582/0.209, allocations: 1.46 MB / 462.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.2091, allocations: 11.95 kB / 462.1 MB, free: 6.773 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.2091, allocations: 4.312 kB / 462.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.535e-05/0.2092, allocations: 12 kB / 462.1 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.2112, allocations: 231.7 kB / 462.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.48e-05/0.2112, allocations: 15.94 kB / 462.3 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.2126, allocations: 119.7 kB / 462.5 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.2127, allocations: 35.97 kB / 462.5 MB, free: 6.363 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.0004587/0.2132, allocations: 177.5 kB / 462.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004855/0.2137, allocations: 153.1 kB / 462.8 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002313/0.214, allocations: 67.27 kB / 462.9 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.214, allocations: 8 kB / 462.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.214, allocations: 0 / 462.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.214, allocations: 3.984 kB / 462.9 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008258/0.2223, allocations: 2.289 MB / 465.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.72e-05/0.2224, allocations: 12 kB / 465.2 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.2238, allocations: 204.2 kB / 465.4 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-05/0.2239, allocations: 16 kB / 465.4 MB, free: 3.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-05/0.224, allocations: 27.95 kB / 465.4 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.018e-05/0.224, allocations: 15.94 kB / 465.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.592e-05/0.224, allocations: 16.12 kB / 465.5 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005621/0.2297, allocations: 1.662 MB / 467.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003065/0.23, allocations: 168.7 kB / 467.3 MB, free: 1.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.814e-05/0.2301, allocations: 24 kB / 467.3 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006063/0.2307, allocations: 103.9 kB / 467.4 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.2309, allocations: 107.8 kB / 467.5 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.231, allocations: 32 kB / 467.6 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001644/0.2311, allocations: 137.2 kB / 467.7 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.2312, allocations: 0 / 467.7 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007559/0.2319, allocations: 124 kB / 467.8 MB, free: 0.6758 MB / 298.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.003665/0.2356, allocations: 2.238 MB / 470.1 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002828/0.2384, allocations: 1.186 MB / 471.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.2385, allocations: 0 / 471.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009854/0.2394, allocations: 379.2 kB / 471.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000888/0.2403, allocations: 132.2 kB / 471.7 MB, free: 12.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008728/0.2491, allocations: 4.255 MB / 476 MB, free: 8.082 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.2495, allocations: 0.8129 MB / 476.8 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005861/0.2501, allocations: 83.86 kB / 476.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/0.2505, allocations: 123.4 kB / 477 MB, free: 7.039 MB / 314.7 MB Notification: Performance of SimCode: time 1.814e-06/0.2505, allocations: 0 / 477 MB, free: 7.039 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.2767, allocations: 10.28 MB / 487.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.2769, allocations: 222 kB / 487.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/2.635, allocations: 4 kB / 487.5 MB, free: 12.49 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat