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.0009779/0.000978, allocations: 172.4 kB / 16.14 MB, free: 5.656 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.491/1.491, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0006958/0.0006957, allocations: 88.81 kB / 270.7 MB, free: 8.242 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.07372/0.07372, allocations: 12.61 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003721, allocations: 11.98 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.08194, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002993/0.08498, allocations: 2.046 MB / 445.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.08667, allocations: 0.8466 MB / 446 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002932/0.087, allocations: 7.938 kB / 446 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002773/0.08729, allocations: 39.75 kB / 446.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.08757, allocations: 63.61 kB / 446.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006195/0.0882, allocations: 175.8 kB / 446.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.08857, allocations: 371.5 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.08881, allocations: 95.41 kB / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.08905, allocations: 139.4 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.08929, allocations: 159.3 kB / 447.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-05/0.08935, allocations: 16 kB / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.766e-05/0.08941, allocations: 20 kB / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.894e-05/0.08951, allocations: 87.7 kB / 447.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001385/0.08966, allocations: 176.8 kB / 447.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.08995, allocations: 330.7 kB / 447.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.08996, allocations: 0 / 447.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.08997, allocations: 0 / 447.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.08999, allocations: 0 / 447.7 MB, free: 10.74 MB / 298.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.001112/0.0911, allocations: 0.6315 MB / 448.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.09116, allocations: 8.031 kB / 448.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.648e-05/0.09125, allocations: 74.72 kB / 448.4 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.09133, allocations: 48.41 kB / 448.4 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.09169, allocations: 299.1 kB / 448.7 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/0.09188, allocations: 146.3 kB / 448.9 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.904e-05/0.09194, allocations: 32.38 kB / 448.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.09298, allocations: 0.5892 MB / 449.5 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.09302, allocations: 3.984 kB / 449.5 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.09306, allocations: 12 kB / 449.5 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.09307, allocations: 11.98 kB / 449.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.09434, allocations: 0.5308 MB / 450.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.09589, allocations: 1.041 MB / 451.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.09733, allocations: 0.5102 MB / 451.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005403/0.09788, allocations: 275.3 kB / 451.9 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.041e-05/0.09795, allocations: 12.12 kB / 451.9 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.09797, allocations: 42.56 kB / 451.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.593e-06/0.09798, allocations: 0 / 451.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03632/0.1343, allocations: 6.787 MB / 458.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1345, allocations: 149 kB / 458.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.1348, allocations: 254.6 kB / 459.1 MB, free: 14.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.923e-05/0.1349, allocations: 41.7 kB / 459.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.135, allocations: 153.4 kB / 459.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.1352, allocations: 193.3 kB / 459.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-05/0.1353, allocations: 12 kB / 459.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1354, allocations: 346.8 kB / 459.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.137, allocations: 0.6578 MB / 460.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.1387, allocations: 0.8316 MB / 461.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/0.1418, allocations: 1.326 MB / 462.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.1418, allocations: 4 kB / 462.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003537/0.1454, allocations: 1.48 MB / 464.1 MB, free: 9.766 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.1454, allocations: 5.312 kB / 464.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.1454, allocations: 8 kB / 464.2 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.1455, allocations: 8 kB / 464.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.1468, allocations: 231.9 kB / 464.4 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.035e-05/0.1468, allocations: 15.92 kB / 464.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009235/0.1477, allocations: 119.8 kB / 464.5 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.715e-05/0.1478, allocations: 27.98 kB / 464.5 MB, free: 9.359 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003006/0.1482, allocations: 189.6 kB / 464.7 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000304/0.1485, allocations: 169.4 kB / 464.9 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.1486, allocations: 71.61 kB / 465 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.1486, allocations: 8 kB / 465 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.1487, allocations: 0 / 465 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.1487, allocations: 3.984 kB / 465 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.1534, allocations: 2.32 MB / 467.3 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.1535, allocations: 12 kB / 467.3 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007705/0.1542, allocations: 200.2 kB / 467.5 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.471e-05/0.1543, allocations: 12 kB / 467.5 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.464e-05/0.1543, allocations: 27.98 kB / 467.5 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.695e-05/0.1544, allocations: 19.94 kB / 467.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.22e-05/0.1544, allocations: 15.94 kB / 467.6 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003305/0.1577, allocations: 1.674 MB / 469.3 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002455/0.1579, allocations: 184.5 kB / 469.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.229e-05/0.158, allocations: 24 kB / 469.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005909/0.1586, allocations: 99.91 kB / 469.6 MB, free: 3.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.1588, allocations: 95.66 kB / 469.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.836e-05/0.1589, allocations: 28 kB / 469.7 MB, free: 3.859 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001679/0.1591, allocations: 186 kB / 469.9 MB, free: 3.676 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1591, allocations: 0 / 469.9 MB, free: 3.676 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006194/0.1597, allocations: 127.9 kB / 470 MB, free: 3.551 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003555/0.1633, allocations: 2.246 MB / 472.2 MB, free: 1.148 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002835/0.1661, allocations: 1.194 MB / 473.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.1661, allocations: 0 / 473.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.1672, allocations: 379.2 kB / 473.8 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.1683, allocations: 164.6 kB / 474 MB, free: 15.42 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/0.1823, allocations: 7.325 MB / 481.3 MB, free: 7.609 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/0.1828, allocations: 0.8324 MB / 482.1 MB, free: 6.75 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006501/0.1835, allocations: 96.16 kB / 482.2 MB, free: 6.656 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.1839, allocations: 123.3 kB / 482.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1839, allocations: 0 / 482.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1962/0.3802, allocations: 10.71 MB / 493 MB, free: 52.18 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/0.3804, allocations: 233.9 kB / 493.3 MB, free: 51.92 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.296/2.677, allocations: 4 kB / 493.3 MB, free: 51.92 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