Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001399/0.001399, allocations: 176 kB / 16.77 MB, free: 5.047 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.638/1.638, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0008166/0.0008164, allocations: 96.97 kB / 271.3 MB, free: 8.238 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.07376/0.07376, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004302, allocations: 12 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09048, allocations: 50.39 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002139/0.09267, allocations: 1.934 MB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.0937, allocations: 0.7729 MB / 445.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.09384, allocations: 7.938 kB / 445.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002466/0.0941, allocations: 39.77 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.09426, allocations: 35.77 kB / 445.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003681/0.09464, allocations: 131.8 kB / 445.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002737/0.09492, allocations: 335.6 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.09509, allocations: 91.23 kB / 446.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.09526, allocations: 127.5 kB / 446.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.09544, allocations: 147.4 kB / 446.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.09549, allocations: 16 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.448e-05/0.09553, allocations: 16 kB / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.09561, allocations: 67.78 kB / 446.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.09572, allocations: 149.1 kB / 446.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.09591, allocations: 219.7 kB / 447 MB, free: 12.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.09592, allocations: 0 / 447 MB, free: 12.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.09593, allocations: 4 kB / 447 MB, free: 12.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.09594, allocations: 4 kB / 447 MB, free: 12.02 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009491/0.0969, allocations: 0.5772 MB / 447.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.09695, allocations: 8.031 kB / 447.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.09702, allocations: 40.56 kB / 447.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.09732, allocations: 272.3 kB / 447.9 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.09749, allocations: 138.2 kB / 448.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.09755, allocations: 28.36 kB / 448.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009411/0.0985, allocations: 0.5647 MB / 448.6 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.09853, allocations: 0 / 448.6 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.09857, allocations: 12 kB / 448.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.09858, allocations: 8 kB / 448.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.09974, allocations: 0.5347 MB / 449.2 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.101, allocations: 1.021 MB / 450.2 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.1023, allocations: 0.5063 MB / 450.7 MB, free: 8.078 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004955/0.1028, allocations: 283.2 kB / 451 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.1028, allocations: 7.938 kB / 451 MB, free: 7.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.1029, allocations: 42.55 kB / 451.1 MB, free: 7.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.714e-06/0.1029, allocations: 0 / 451.1 MB, free: 7.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03327/0.1361, allocations: 6.753 MB / 457.8 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.1363, allocations: 148.9 kB / 458 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.1364, allocations: 186.6 kB / 458.1 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.1365, allocations: 45.64 kB / 458.2 MB, free: 0.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.915e-05/0.1366, allocations: 145.5 kB / 458.3 MB, free: 408 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.1367, allocations: 185.4 kB / 458.5 MB, free: 220 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.835e-05/0.1368, allocations: 12 kB / 458.5 MB, free: 208 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1369, allocations: 350.8 kB / 458.9 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.1385, allocations: 0.6461 MB / 459.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.1401, allocations: 0.8285 MB / 460.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.143, allocations: 1.326 MB / 461.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.143, allocations: 0 / 461.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003388/0.1464, allocations: 1.464 MB / 463.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.1464, allocations: 8 kB / 463.1 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.1464, allocations: 8 kB / 463.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.1465, allocations: 12.03 kB / 463.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.1477, allocations: 231.6 kB / 463.4 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.807e-05/0.1478, allocations: 16 kB / 463.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008798/0.1487, allocations: 127.7 kB / 463.5 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-05/0.1488, allocations: 28 kB / 463.5 MB, free: 11 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003519/0.1491, allocations: 189.3 kB / 463.7 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002881/0.1494, allocations: 145.6 kB / 463.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001733/0.1496, allocations: 63.31 kB / 463.9 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.1496, allocations: 11.98 kB / 463.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.1496, allocations: 0 / 463.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1496, allocations: 96 / 463.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004627/0.1543, allocations: 2.301 MB / 466.2 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.1543, allocations: 16.06 kB / 466.3 MB, free: 8.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007201/0.155, allocations: 203.7 kB / 466.5 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.266e-05/0.1551, allocations: 12 kB / 466.5 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/0.1551, allocations: 24 kB / 466.5 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.586e-05/0.1552, allocations: 19.94 kB / 466.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-05/0.1552, allocations: 19.92 kB / 466.5 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.1582, allocations: 1.654 MB / 468.2 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.1584, allocations: 164.6 kB / 468.3 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/0.1585, allocations: 28 kB / 468.4 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005366/0.1591, allocations: 95.97 kB / 468.5 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.1593, allocations: 103.6 kB / 468.6 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.978e-05/0.1593, allocations: 28 kB / 468.6 MB, free: 5.574 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001479/0.1595, allocations: 152.2 kB / 468.7 MB, free: 5.426 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1595, allocations: 0 / 468.7 MB, free: 5.426 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006335/0.1601, allocations: 124 kB / 468.9 MB, free: 5.305 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 (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.0001595/0.1603, allocations: 130.9 kB / 469 MB, free: 5.168 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.163, allocations: 1.195 MB / 470.2 MB, free: 3.973 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.163, allocations: 4 kB / 470.2 MB, free: 3.969 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.164, allocations: 374.1 kB / 470.6 MB, free: 3.605 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009682/0.1649, allocations: 145.3 kB / 470.7 MB, free: 3.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.1672, allocations: 1.368 MB / 472.1 MB, free: 1.926 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.1677, allocations: 0.8131 MB / 472.9 MB, free: 1.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/0.168, allocations: 43.44 kB / 472.9 MB, free: 1.047 MB / 314.7 MB Notification: Performance of SimCode: time 2.484e-06/0.168, allocations: 0 / 472.9 MB, free: 1.047 MB / 314.7 MB Notification: Performance of Templates: time 0.01011/0.1781, allocations: 7.077 MB / 480 MB, free: 9.941 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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