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/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/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.00187/0.00187, allocations: 185.9 kB / 17.46 MB, free: 4.242 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.553/2.553, allocations: 205.4 MB / 223.6 MB, free: 9.004 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.001086/0.001086, allocations: 93.02 kB / 272 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1446/0.1446, allocations: 12.21 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006743/0.0006743, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.1766, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6084/0.7851, allocations: 82.25 MB / 0.5129 GB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004399/0.7857, allocations: 74.19 kB / 0.513 GB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03404/0.8198, allocations: 8.127 MB / 0.5209 GB, free: 8.105 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.8199, allocations: 4 kB / 0.521 GB, free: 8.102 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.741e-05/0.8199, allocations: 4 kB / 0.521 GB, free: 8.098 MB / 330.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.001716/0.8216, allocations: 0.6398 MB / 0.5216 GB, free: 7.438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/0.8217, allocations: 8.031 kB / 0.5216 GB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.8218, allocations: 44.47 kB / 0.5216 GB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.8224, allocations: 295.5 kB / 0.5219 GB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/0.8227, allocations: 148.2 kB / 0.5221 GB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.593e-05/0.8228, allocations: 29.12 kB / 0.5221 GB, free: 6.914 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.8246, allocations: 0.6022 MB / 0.5227 GB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/0.8247, allocations: 0 / 0.5227 GB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.582e-05/0.8247, allocations: 11.69 kB / 0.5227 GB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.8248, allocations: 4 kB / 0.5227 GB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.8268, allocations: 0.541 MB / 0.5232 GB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.829, allocations: 1.05 MB / 0.5242 GB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002109/0.8311, allocations: 0.5009 MB / 0.5247 GB, free: 4.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009109/0.8321, allocations: 282.9 kB / 0.525 GB, free: 4.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.867e-05/0.8322, allocations: 15.14 kB / 0.525 GB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.8322, allocations: 46 kB / 0.5251 GB, free: 4.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 4.539e-06/0.8322, allocations: 0 / 0.5251 GB, free: 4.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.06278/0.895, allocations: 6.79 MB / 0.5317 GB, free: 14.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002346/0.8953, allocations: 152.1 kB / 0.5318 GB, free: 14.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006003/0.896, allocations: 269.2 kB / 0.5321 GB, free: 13.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001646/0.8961, allocations: 40.33 kB / 0.5321 GB, free: 13.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.8963, allocations: 149.6 kB / 0.5323 GB, free: 13.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003395/0.8967, allocations: 187.1 kB / 0.5324 GB, free: 13.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.8968, allocations: 13.94 kB / 0.5325 GB, free: 13.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.897, allocations: 352.4 kB / 0.5328 GB, free: 13.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/0.8999, allocations: 0.6564 MB / 0.5334 GB, free: 12.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002857/0.9028, allocations: 0.8407 MB / 0.5343 GB, free: 12.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005247/0.908, allocations: 1.33 MB / 0.5356 GB, free: 11.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/0.9081, allocations: 3.984 kB / 0.5356 GB, free: 11.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.007283/0.9154, allocations: 1.482 MB / 0.537 GB, free: 10.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/0.9156, allocations: 8 kB / 0.537 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/0.9156, allocations: 4 kB / 0.537 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.601e-05/0.9157, allocations: 12.12 kB / 0.537 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002439/0.9181, allocations: 223.2 kB / 0.5372 GB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.444e-05/0.9182, allocations: 27.86 kB / 0.5373 GB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.9201, allocations: 118.5 kB / 0.5374 GB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.9203, allocations: 35.48 kB / 0.5374 GB, free: 9.766 MB / 346.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0007387/0.9211, allocations: 193.8 kB / 0.5376 GB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006408/0.9217, allocations: 154.1 kB / 0.5378 GB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003938/0.9222, allocations: 72.11 kB / 0.5378 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-05/0.9222, allocations: 8 kB / 0.5378 GB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.9222, allocations: 3.938 kB / 0.5378 GB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.9222, allocations: 3.984 kB / 0.5378 GB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009321/0.9316, allocations: 2.32 MB / 0.5401 GB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.398e-05/0.9317, allocations: 12 kB / 0.5401 GB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/0.9332, allocations: 206.9 kB / 0.5403 GB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-05/0.9332, allocations: 15.94 kB / 0.5403 GB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.766e-05/0.9334, allocations: 28.56 kB / 0.5404 GB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.683e-05/0.9334, allocations: 19.94 kB / 0.5404 GB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.249e-05/0.9334, allocations: 11.94 kB / 0.5404 GB, free: 7.094 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006972/0.9404, allocations: 1.688 MB / 0.542 GB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005969/0.9411, allocations: 180.4 kB / 0.5422 GB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.9413, allocations: 34.34 kB / 0.5422 GB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.9424, allocations: 98.17 kB / 0.5423 GB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/0.9428, allocations: 110.7 kB / 0.5424 GB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.524e-05/0.943, allocations: 35.92 kB / 0.5425 GB, free: 5.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003871/0.9434, allocations: 186 kB / 0.5426 GB, free: 5.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9434, allocations: 3.938 kB / 0.5427 GB, free: 5.008 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001337/0.9447, allocations: 130.4 kB / 0.5428 GB, free: 4.902 MB / 346.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0003369/0.9451, allocations: 133.1 kB / 0.5429 GB, free: 4.773 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00575/0.9508, allocations: 1.203 MB / 0.5441 GB, free: 3.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-05/0.951, allocations: 8.188 kB / 0.5441 GB, free: 3.938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.9531, allocations: 378.2 kB / 0.5444 GB, free: 3.625 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.9554, allocations: 151.8 kB / 0.5446 GB, free: 3.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004904/0.9604, allocations: 1.462 MB / 0.546 GB, free: 2.035 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000723/0.9612, allocations: 0.8243 MB / 0.5468 GB, free: 1.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006543/0.9619, allocations: 46.61 kB / 0.5469 GB, free: 1.145 MB / 346.7 MB Notification: Performance of SimCode: time 1.703e-06/0.9619, allocations: 4 kB / 0.5469 GB, free: 1.141 MB / 346.7 MB Notification: Performance of Templates: time 0.02232/0.9842, allocations: 7.319 MB / 0.554 GB, free: 9.855 MB / 362.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.y,angle.phi,gain.y,speed.w,time