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.001567/0.001567, allocations: 110 kB / 16.45 MB, free: 6.445 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.001994/0.001994, allocations: 186.9 kB / 17.39 MB, free: 5.688 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.593/1.593, allocations: 205.1 MB / 223.3 MB, free: 12.23 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.07334/0.07334, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.002063/0.002063, allocations: 86.31 kB / 394.1 MB, free: 45.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1303, allocations: 49.41 MB / 443.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004224/0.1346, allocations: 2.374 MB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.1365, allocations: 0.8659 MB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1367, allocations: 7.938 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.1371, allocations: 55.56 kB / 446.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.1374, allocations: 71.48 kB / 446.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.138, allocations: 199.5 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004599/0.1385, allocations: 403.2 kB / 447.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002781/0.1388, allocations: 103.4 kB / 447.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.1391, allocations: 159.5 kB / 447.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.1394, allocations: 187.2 kB / 448 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.169e-05/0.1395, allocations: 36 kB / 448 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.656e-05/0.1395, allocations: 36 kB / 448 MB, free: 12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1397, allocations: 107.7 kB / 448.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.1398, allocations: 163 kB / 448.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.1403, allocations: 366.7 kB / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1403, allocations: 0 / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1403, allocations: 0 / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.1403, 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.001383/0.1417, allocations: 0.6665 MB / 449.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.1418, allocations: 12.03 kB / 449.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.86e-05/0.1419, allocations: 40.56 kB / 449.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005864/0.1425, allocations: 315 kB / 449.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.1427, allocations: 138.3 kB / 449.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.684e-05/0.1428, allocations: 32.31 kB / 449.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.144, allocations: 0.5784 MB / 450.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.1441, allocations: 3.984 kB / 450.4 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/0.1441, allocations: 15.94 kB / 450.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1441, allocations: 4 kB / 450.4 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.1455, allocations: 0.5073 MB / 450.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.1472, allocations: 1.022 MB / 452 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.1488, allocations: 0.5102 MB / 452.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006226/0.1495, allocations: 255.4 kB / 452.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-05/0.1495, allocations: 11.98 kB / 452.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.1496, allocations: 34.56 kB / 452.8 MB, free: 6.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 3.025e-06/0.1496, allocations: 8 kB / 452.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03937/0.189, allocations: 5.749 MB / 458.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/0.1892, allocations: 152.9 kB / 458.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.1896, allocations: 254.5 kB / 458.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.164e-05/0.1896, allocations: 41.7 kB / 459 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1898, allocations: 149.5 kB / 459.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.19, allocations: 189.3 kB / 459.3 MB, free: 396 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/0.1903, allocations: 114.6 kB / 459.4 MB, free: 272 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1904, allocations: 346.8 kB / 459.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.192, allocations: 0.6187 MB / 460.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.1938, allocations: 0.7964 MB / 461.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003111/0.1969, allocations: 1.247 MB / 462.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.1969, allocations: 4 kB / 462.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00366/0.2006, allocations: 1.402 MB / 463.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.2007, allocations: 8 kB / 463.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.2007, allocations: 4 kB / 463.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.041e-05/0.2007, allocations: 8 kB / 463.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.2021, allocations: 216 kB / 464 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.2022, allocations: 15.94 kB / 464.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000979/0.2031, allocations: 99.77 kB / 464.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/0.2032, allocations: 27.98 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.0003844/0.2036, allocations: 189.6 kB / 464.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003398/0.204, allocations: 169.1 kB / 464.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.2042, allocations: 67.61 kB / 464.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.2042, allocations: 8 kB / 464.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.2042, allocations: 4 kB / 464.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.2042, allocations: 7.984 kB / 464.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005064/0.2093, allocations: 2.179 MB / 466.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.2093, allocations: 12 kB / 466.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007668/0.2101, allocations: 179.7 kB / 467 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.986e-05/0.2101, allocations: 12.47 kB / 467 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/0.2102, allocations: 28 kB / 467 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.957e-05/0.2102, allocations: 23.92 kB / 467.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-05/0.2102, allocations: 15.94 kB / 467.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003415/0.2137, allocations: 1.557 MB / 468.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000239/0.2139, allocations: 180.6 kB / 468.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.017e-05/0.214, allocations: 31.98 kB / 468.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005897/0.2146, allocations: 71.92 kB / 468.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.2148, allocations: 91.66 kB / 469 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.2149, allocations: 36 kB / 469 MB, free: 6.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001937/0.2151, allocations: 186 kB / 469.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2151, allocations: 0 / 469.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007004/0.2158, allocations: 124 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.0001733/0.216, allocations: 143.1 kB / 469.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.2189, allocations: 1.143 MB / 470.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.2189, allocations: 4.125 kB / 470.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.2199, allocations: 338.4 kB / 470.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009817/0.2209, allocations: 149.8 kB / 471.1 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.2235, allocations: 1.233 MB / 472.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.2239, allocations: 0.8324 MB / 473.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004813/0.2244, allocations: 92.11 kB / 473.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/0.2247, allocations: 43.42 kB / 473.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2247, allocations: 0 / 473.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of Templates: time 0.01552/0.2403, allocations: 8.792 MB / 482.1 MB, free: 8.832 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