Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0008099/0.0008099, allocations: 173.5 kB / 16.76 MB, free: 5.051 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.296/1.296, allocations: 205 MB / 222.5 MB, free: 9.148 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.0007534/0.0007534, allocations: 93 kB / 270.5 MB, free: 8.676 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.08843/0.08842, allocations: 12.57 MB / 331 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000464/0.0004645, allocations: 12.38 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08162/0.08211, allocations: 49.98 MB / 441.7 MB, free: 16.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002092/0.08424, allocations: 2.027 MB / 443.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.08531, allocations: 0.8076 MB / 444.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.08545, allocations: 7.938 kB / 444.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002601/0.08572, allocations: 35.77 kB / 444.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.08589, allocations: 51.69 kB / 444.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.08627, allocations: 139.8 kB / 444.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.08653, allocations: 355.6 kB / 445.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.0867, allocations: 83.53 kB / 445.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.08686, allocations: 139.5 kB / 445.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.08703, allocations: 155.2 kB / 445.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.804e-05/0.08707, allocations: 16 kB / 445.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.454e-05/0.08711, allocations: 16 kB / 445.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-05/0.08719, allocations: 75.78 kB / 445.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.756e-05/0.08729, allocations: 123.2 kB / 445.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.08746, allocations: 223.4 kB / 445.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.08747, allocations: 4 kB / 445.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.08748, allocations: 0 / 445.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.08749, allocations: 0 / 445.9 MB, free: 12.16 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.0009005/0.08839, allocations: 0.5694 MB / 446.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.08843, allocations: 16.03 kB / 446.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.305e-05/0.0885, allocations: 36.56 kB / 446.5 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.08875, allocations: 268.3 kB / 446.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.08892, allocations: 142.2 kB / 446.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/0.08898, allocations: 32.38 kB / 447 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000955/0.08994, allocations: 0.5763 MB / 447.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.08997, allocations: 4 kB / 447.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.09, allocations: 8 kB / 447.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.09002, allocations: 8 kB / 447.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.09119, allocations: 0.5347 MB / 448.1 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.09234, allocations: 1.025 MB / 449.1 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.09368, allocations: 0.5219 MB / 449.6 MB, free: 8.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005257/0.09421, allocations: 267.4 kB / 449.9 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.027e-05/0.09427, allocations: 12.08 kB / 449.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.0943, allocations: 38.56 kB / 450 MB, free: 7.848 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.824e-06/0.09431, allocations: 0 / 450 MB, free: 7.848 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.0353/0.1296, allocations: 6.756 MB / 456.7 MB, free: 1.074 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.1297, allocations: 148.9 kB / 456.9 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1299, allocations: 190.7 kB / 457 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.177e-05/0.13, allocations: 37.7 kB / 457.1 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.13, allocations: 141.5 kB / 457.2 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.1302, allocations: 193.3 kB / 457.4 MB, free: 336 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.486e-05/0.1303, allocations: 57.69 kB / 457.5 MB, free: 272 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1304, allocations: 346.8 kB / 457.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/0.1319, allocations: 0.6461 MB / 458.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.1335, allocations: 0.8401 MB / 459.3 MB, free: 14.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.1364, allocations: 1.329 MB / 460.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1365, allocations: 0 / 460.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003421/0.1399, allocations: 1.48 MB / 462.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.1399, allocations: 8 kB / 462.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.14, allocations: 4.375 kB / 462.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/0.14, allocations: 12.03 kB / 462.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.1413, allocations: 227.6 kB / 462.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.1413, allocations: 12.31 kB / 462.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009225/0.1423, allocations: 127.7 kB / 462.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.719e-05/0.1424, allocations: 28 kB / 462.5 MB, free: 11.05 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.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.0002881/0.1427, allocations: 181.6 kB / 462.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/0.1429, allocations: 153.2 kB / 462.8 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001298/0.1431, allocations: 63.3 kB / 462.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.1431, allocations: 8 kB / 462.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.1431, allocations: 4 kB / 462.9 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1431, allocations: 3.984 kB / 462.9 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004531/0.1477, allocations: 2.297 MB / 465.2 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.1477, allocations: 8 kB / 465.2 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007216/0.1484, allocations: 203.7 kB / 465.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.536e-05/0.1484, allocations: 19.98 kB / 465.4 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.1485, allocations: 24 kB / 465.5 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.467e-05/0.1485, allocations: 19.92 kB / 465.5 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/0.1485, allocations: 15.94 kB / 465.5 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003075/0.1516, allocations: 1.666 MB / 467.2 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.1518, allocations: 160.6 kB / 467.3 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.125e-05/0.1519, allocations: 39.92 kB / 467.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005822/0.1525, allocations: 91.98 kB / 467.4 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.1527, allocations: 95.66 kB / 467.5 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.1527, allocations: 32 kB / 467.6 MB, free: 5.613 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.1528, allocations: 152.2 kB / 467.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1529, allocations: 0 / 467.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006413/0.1535, allocations: 120 kB / 467.8 MB, free: 5.348 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 (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.0001514/0.1537, allocations: 138.9 kB / 468 MB, free: 5.203 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.1564, allocations: 1.187 MB / 469.2 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.1564, allocations: 3.938 kB / 469.2 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009696/0.1574, allocations: 382.1 kB / 469.5 MB, free: 3.641 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.1583, allocations: 140.2 kB / 469.7 MB, free: 3.504 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.1606, allocations: 1.349 MB / 471 MB, free: 1.984 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.1609, allocations: 0.8132 MB / 471.8 MB, free: 1.148 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.1613, allocations: 43.42 kB / 471.9 MB, free: 1.105 MB / 314.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1613, allocations: 0 / 471.9 MB, free: 1.105 MB / 314.7 MB Notification: Performance of Templates: time 0.009152/0.1704, allocations: 7.081 MB / 479 MB, free: 10 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_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