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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 106.7 kB / 16.45 MB, free: 6.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 189.6 kB / 17.39 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07683/0.07683, allocations: 12.58 MB / 283.2 MB, free: 15.41 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 89.75 kB / 394.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1023, allocations: 49.4 MB / 443.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005478/0.1078, allocations: 2.382 MB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1099, allocations: 0.862 MB / 446.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.1102, allocations: 7.938 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.1105, allocations: 55.56 kB / 446.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.1107, allocations: 71.48 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.1114, allocations: 203.6 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.1119, allocations: 395.2 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.1122, allocations: 107.4 kB / 447.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/0.1124, allocations: 167.5 kB / 447.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.1127, allocations: 187.2 kB / 448 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.1128, allocations: 32 kB / 448 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.69e-05/0.1128, allocations: 36 kB / 448 MB, free: 12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.113, allocations: 111.6 kB / 448.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.1132, allocations: 159.1 kB / 448.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004675/0.1136, allocations: 366.7 kB / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1137, allocations: 0 / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1137, allocations: 0 / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1137, allocations: 0 / 448.6 MB, free: 11.38 MB / 334.1 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.001245/0.1149, allocations: 0.6742 MB / 449.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.115, allocations: 12.03 kB / 449.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.011e-05/0.1151, allocations: 40.56 kB / 449.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.1156, allocations: 311 kB / 449.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.1158, allocations: 138.3 kB / 449.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.759e-05/0.1158, allocations: 32.38 kB / 449.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.117, allocations: 0.5786 MB / 450.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.117, allocations: 3.938 kB / 450.4 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.1171, allocations: 12 kB / 450.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.1171, allocations: 4 kB / 450.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.1184, allocations: 0.519 MB / 451 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1201, allocations: 1.018 MB / 452 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.1217, allocations: 0.5024 MB / 452.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005853/0.1222, allocations: 255.4 kB / 452.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.582e-05/0.1223, allocations: 8.156 kB / 452.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.1224, allocations: 50.55 kB / 452.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.809e-06/0.1224, allocations: 0 / 452.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03719/0.1596, allocations: 5.749 MB / 458.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.1597, allocations: 148.9 kB / 458.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.1601, allocations: 254.5 kB / 458.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.1602, allocations: 41.7 kB / 459 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.1603, allocations: 157.5 kB / 459.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.1606, allocations: 189.3 kB / 459.3 MB, free: 392 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003669/0.161, allocations: 114.6 kB / 459.4 MB, free: 268 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1612, allocations: 346.7 kB / 459.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.1627, allocations: 0.6188 MB / 460.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/0.1645, allocations: 0.7963 MB / 461.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002844/0.1673, allocations: 1.247 MB / 462.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.1674, allocations: 4 kB / 462.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003398/0.1708, allocations: 1.398 MB / 463.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.1708, allocations: 8 kB / 463.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.1708, allocations: 4.047 kB / 463.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.208e-05/0.1709, allocations: 11.98 kB / 463.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.1722, allocations: 215.7 kB / 464.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.126e-05/0.1722, allocations: 15.94 kB / 464.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009319/0.1732, allocations: 99.72 kB / 464.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.1733, allocations: 24 kB / 464.2 MB, free: 11.32 MB / 350.1 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.noWphase,kinematicPTP.moving[1]) * 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.0005088/0.1738, allocations: 185.6 kB / 464.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004085/0.1742, allocations: 169.4 kB / 464.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.1744, allocations: 71.61 kB / 464.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.1744, allocations: 8 kB / 464.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.1745, allocations: 0 / 464.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.1745, allocations: 7.984 kB / 464.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005127/0.1796, allocations: 2.179 MB / 466.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.744e-05/0.1797, allocations: 12 kB / 466.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007694/0.1804, allocations: 188.5 kB / 467 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.276e-05/0.1805, allocations: 12 kB / 467 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.891e-05/0.1805, allocations: 28 kB / 467 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.736e-05/0.1806, allocations: 15.94 kB / 467.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/0.1806, allocations: 15.94 kB / 467.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.184, allocations: 1.56 MB / 468.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.1843, allocations: 180.5 kB / 468.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.341e-05/0.1843, allocations: 28 kB / 468.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000549/0.1849, allocations: 75.91 kB / 468.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.1851, allocations: 91.73 kB / 469 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.595e-05/0.1852, allocations: 36 kB / 469 MB, free: 6.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.1854, allocations: 189.9 kB / 469.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1854, allocations: 0 / 469.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007419/0.1861, allocations: 120 kB / 469.3 MB, free: 5.797 MB / 350.1 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.0002432/0.1864, allocations: 138.9 kB / 469.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002798/0.1892, allocations: 1.15 MB / 470.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.1892, allocations: 1.375 kB / 470.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009993/0.1903, allocations: 341.8 kB / 471 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009948/0.1913, allocations: 154.5 kB / 471.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.1941, allocations: 1.225 MB / 472.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000692/0.1948, allocations: 0.8324 MB / 473.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005087/0.1953, allocations: 100.1 kB / 473.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.1956, allocations: 39.44 kB / 473.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1956, allocations: 0 / 473.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of Templates: time 0.01768/0.2133, allocations: 8.526 MB / 481.8 MB, free: 9.094 MB / 366.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,fastClock.factor,fastClock.resolution,fastClock.resolutionFactor,fastClock.useSolver,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,slowClock.factor,slowClock.resolution,slowClock.resolutionFactor,slowClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time