Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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: 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_cpp_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_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.007091/0.007091, allocations: 188.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.076/4.076, allocations: 205.4 MB / 222.6 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.001891/0.001891, allocations: 90.86 kB / 270.9 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.1878/0.1878, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009583/0.0009584, allocations: 15.39 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2015, allocations: 50.37 MB / 442.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004953/0.2065, allocations: 1.964 MB / 444.3 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003346/0.2099, allocations: 0.8392 MB / 445.1 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005348/0.2106, allocations: 7.938 kB / 445.2 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004621/0.2111, allocations: 35.77 kB / 445.2 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006046/0.2117, allocations: 63.77 kB / 445.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.2132, allocations: 161.4 kB / 445.4 MB, free: 8.539 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.2143, allocations: 240 kB / 445.6 MB, free: 8.301 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003983/0.2147, allocations: 81.86 kB / 445.7 MB, free: 8.227 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005829/0.2154, allocations: 139.5 kB / 445.9 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004183/0.2158, allocations: 151.4 kB / 446 MB, free: 7.941 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.2159, allocations: 16 kB / 446 MB, free: 7.926 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.413e-05/0.2161, allocations: 16 kB / 446 MB, free: 7.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.2163, allocations: 87.7 kB / 446.1 MB, free: 7.824 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2164, allocations: 73.52 kB / 446.2 MB, free: 7.746 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005045/0.217, allocations: 240.2 kB / 446.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.217, allocations: 0 / 446.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.217, allocations: 4 kB / 446.4 MB, free: 7.508 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.2171, allocations: 4 kB / 446.4 MB, free: 7.504 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002616/0.2197, allocations: 0.6351 MB / 447.1 MB, free: 6.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.338e-05/0.2198, allocations: 8.031 kB / 447.1 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002288/0.22, allocations: 51.47 kB / 447.1 MB, free: 6.762 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008311/0.2209, allocations: 294 kB / 447.4 MB, free: 6.438 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005103/0.2215, allocations: 145.7 kB / 447.6 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.2217, allocations: 32 kB / 447.6 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.2247, allocations: 0.5776 MB / 448.2 MB, free: 5.637 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.846e-05/0.2248, allocations: 4 kB / 448.2 MB, free: 5.633 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.342e-05/0.225, allocations: 8 kB / 448.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.225, allocations: 8 kB / 448.2 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003941/0.229, allocations: 0.5347 MB / 448.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003678/0.2327, allocations: 1.045 MB / 449.8 MB, free: 3.961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004223/0.237, allocations: 0.5186 MB / 450.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001962/0.2373, allocations: 12.33 kB / 450.3 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/0.2374, allocations: 42.69 kB / 450.3 MB, free: 3.344 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 6.954e-06/0.2374, allocations: 4 kB / 450.3 MB, free: 3.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.1343/0.3717, allocations: 6.775 MB / 457.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002476/0.372, allocations: 144.9 kB / 457.3 MB, free: 12.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007064/0.3727, allocations: 258.6 kB / 457.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002912/0.3731, allocations: 33.7 kB / 457.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004394/0.3775, allocations: 219.8 kB / 457.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005561/0.3781, allocations: 189.3 kB / 457.9 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.3784, allocations: 16 kB / 458 MB, free: 11.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002507/0.3786, allocations: 334.8 kB / 458.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004468/0.3831, allocations: 0.6578 MB / 458.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004559/0.3877, allocations: 0.8276 MB / 459.8 MB, free: 9.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004022/0.3918, allocations: 0.5981 MB / 460.4 MB, free: 9.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.619e-05/0.3919, allocations: 0 / 460.4 MB, free: 9.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01439/0.4063, allocations: 1.468 MB / 461.8 MB, free: 7.688 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.628e-05/0.4065, allocations: 4 kB / 461.8 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/0.4065, allocations: 15.89 kB / 461.9 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.352e-05/0.4066, allocations: 12.31 kB / 461.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004138/0.4107, allocations: 227.7 kB / 462.1 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.669e-05/0.4109, allocations: 15.94 kB / 462.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003023/0.4139, allocations: 127.7 kB / 462.2 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007294/0.4148, allocations: 27.94 kB / 462.3 MB, free: 7.266 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.001669/0.4165, allocations: 193.4 kB / 462.4 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000919/0.4174, allocations: 161.1 kB / 462.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.4179, allocations: 67.61 kB / 462.7 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.4179, allocations: 15.95 kB / 462.7 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.4179, allocations: 0 / 462.7 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.279e-05/0.418, allocations: 3.984 kB / 462.7 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01907/0.4371, allocations: 2.3 MB / 465 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001531/0.4373, allocations: 15.94 kB / 465 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002539/0.4399, allocations: 200.1 kB / 465.2 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.213e-05/0.44, allocations: 16 kB / 465.2 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002151/0.4402, allocations: 24 kB / 465.2 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-05/0.4403, allocations: 23.88 kB / 465.3 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.162e-05/0.4404, allocations: 19.88 kB / 465.3 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/0.451, allocations: 2.173 MB / 467.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/0.4518, allocations: 184.6 kB / 467.6 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001897/0.452, allocations: 27.98 kB / 467.7 MB, free: 1.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001882/0.4539, allocations: 91.92 kB / 467.8 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006013/0.4546, allocations: 103.7 kB / 467.9 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.4548, allocations: 35.98 kB / 467.9 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005097/0.4553, allocations: 182 kB / 468.1 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.4553, allocations: 0 / 468.1 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001908/0.4573, allocations: 124 kB / 468.2 MB, free: 0.6914 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.0004346/0.4578, allocations: 127 kB / 468.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0129/0.4707, allocations: 1.194 MB / 469.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-05/0.4708, allocations: 4 kB / 469.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01144/0.4823, allocations: 378.5 kB / 469.9 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.4842, allocations: 148.9 kB / 470 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.4953, allocations: 1.451 MB / 471.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000975/0.4963, allocations: 0.8405 MB / 472.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005087/0.5015, allocations: 43.44 kB / 472.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of SimCode: time 2.705e-06/0.5016, allocations: 0 / 472.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of Templates: time 0.06821/0.5698, allocations: 7.121 MB / 479.5 MB, free: 5.184 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_cpp_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.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,fastClock.factor,fastClock.resolution,fastClock.useSolver,feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,der(load.w),load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.w,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,der(speed.flange.phi),speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau