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.002466/0.002465, allocations: 189.1 kB / 15.81 MB, free: 6.027 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.158/2.158, 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.001188/0.001188, allocations: 94.86 kB / 270.3 MB, free: 13.35 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.1336/0.1336, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009046/0.0009048, allocations: 15.94 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1262, 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.005082/0.1313, allocations: 1.928 MB / 444.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.1336, allocations: 0.8158 MB / 445.2 MB, free: 8.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003345/0.134, allocations: 4 kB / 445.2 MB, free: 8.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003212/0.1343, allocations: 35.77 kB / 445.3 MB, free: 8.031 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004047/0.1348, allocations: 59.77 kB / 445.3 MB, free: 7.973 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.1358, allocations: 135.7 kB / 445.4 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005953/0.1364, allocations: 228 kB / 445.7 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.1368, allocations: 82.19 kB / 445.7 MB, free: 7.535 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003608/0.1371, allocations: 143.4 kB / 445.9 MB, free: 7.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003431/0.1375, allocations: 143.4 kB / 446 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.1376, allocations: 20 kB / 446 MB, free: 7.234 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.928e-05/0.1377, allocations: 16 kB / 446.1 MB, free: 7.219 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1379, allocations: 71.78 kB / 446.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.324e-05/0.138, allocations: 65.58 kB / 446.2 MB, free: 7.078 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004108/0.1384, allocations: 232.2 kB / 446.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1384, allocations: 0 / 446.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1384, allocations: 0 / 446.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1385, allocations: 0 / 446.4 MB, free: 6.852 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.002032/0.1405, allocations: 0.5848 MB / 447 MB, free: 6.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.1406, allocations: 8.031 kB / 447 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/0.1408, allocations: 74.53 kB / 447.1 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.1409, allocations: 39.62 kB / 447.1 MB, free: 6.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.1415, allocations: 263.1 kB / 447.4 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003895/0.1419, allocations: 145.7 kB / 447.5 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.1421, allocations: 35.91 kB / 447.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.1447, allocations: 0.5775 MB / 448.1 MB, free: 4.988 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.429e-05/0.1448, allocations: 8 kB / 448.1 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.101e-05/0.1449, allocations: 8 kB / 448.2 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.1449, allocations: 11.95 kB / 448.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003569/0.1485, allocations: 0.5308 MB / 448.7 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.1516, allocations: 1.018 MB / 449.7 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003882/0.1555, allocations: 0.5261 MB / 450.2 MB, free: 2.777 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.1557, allocations: 8.188 kB / 450.3 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.1557, allocations: 42.69 kB / 450.3 MB, free: 2.719 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 3.737e-06/0.1557, allocations: 0 / 450.3 MB, free: 2.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.08282/0.2386, allocations: 6.74 MB / 457 MB, free: 11.97 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/0.2387, allocations: 161.2 kB / 457.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.2391, allocations: 195.4 kB / 457.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.2392, allocations: 37.7 kB / 457.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.2393, allocations: 145.5 kB / 457.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.2396, allocations: 197.2 kB / 457.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.2398, allocations: 8 kB / 457.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.2399, allocations: 342.8 kB / 458.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/0.2431, allocations: 0.6578 MB / 458.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003265/0.2463, allocations: 0.8276 MB / 459.6 MB, free: 9.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.2493, allocations: 0.606 MB / 460.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2493, allocations: 0 / 460.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006632/0.2559, allocations: 1.46 MB / 461.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.256, allocations: 11.95 kB / 461.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.256, allocations: 8 kB / 461.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.261e-05/0.256, allocations: 8 kB / 461.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002601/0.2587, allocations: 231.7 kB / 461.9 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.754e-05/0.2587, allocations: 19.92 kB / 461.9 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.2605, allocations: 123.7 kB / 462 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.2606, allocations: 31.98 kB / 462.1 MB, free: 6.781 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.0004391/0.2611, allocations: 177.5 kB / 462.2 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004563/0.2615, allocations: 149.5 kB / 462.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.2618, allocations: 67.25 kB / 462.5 MB, free: 6.379 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.2618, allocations: 8 kB / 462.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.2618, allocations: 0 / 462.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.2618, allocations: 11.92 kB / 462.5 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008658/0.2705, allocations: 2.281 MB / 464.8 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/0.2705, allocations: 12.22 kB / 464.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/0.2721, allocations: 199.7 kB / 465 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.633e-05/0.2721, allocations: 20 kB / 465 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.141e-05/0.2722, allocations: 27.95 kB / 465 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-05/0.2723, allocations: 19.92 kB / 465 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.649e-05/0.2723, allocations: 15.94 kB / 465 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006438/0.2787, allocations: 2.181 MB / 467.2 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000306/0.2791, allocations: 168.5 kB / 467.4 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.2792, allocations: 27.98 kB / 467.4 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.2802, allocations: 91.98 kB / 467.5 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003396/0.2806, allocations: 103.9 kB / 467.6 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.578e-05/0.2807, allocations: 35.98 kB / 467.6 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002003/0.2809, allocations: 145.2 kB / 467.8 MB, free: 436 kB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2809, allocations: 0 / 467.8 MB, free: 436 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009716/0.2819, allocations: 120 kB / 467.9 MB, free: 316 kB / 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.008188/0.2901, allocations: 5.771 MB / 473.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005443/0.2956, allocations: 1.187 MB / 474.9 MB, free: 9.027 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/0.2957, allocations: 0 / 474.9 MB, free: 9.027 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002178/0.2979, allocations: 378.2 kB / 475.2 MB, free: 8.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.2989, allocations: 137.8 kB / 475.4 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/0.3166, allocations: 7.827 MB / 483.2 MB, free: 416 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006138/0.3172, allocations: 0.8207 MB / 484 MB, free: 15.56 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00107/0.3183, allocations: 87.38 kB / 484.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006856/0.319, allocations: 123.9 kB / 484.2 MB, free: 15.35 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.3191, allocations: 0 / 484.2 MB, free: 15.35 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05151/0.3706, allocations: 10.26 MB / 494.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003583/0.371, allocations: 207.9 kB / 494.7 MB, free: 4.832 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.92/3.291, allocations: 0 / 494.7 MB, free: 4.832 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