Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 104.3 kB / 17.59 MB, free: 5.43 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.001162/0.001162, allocations: 191.3 kB / 18.52 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 47.05 kB / 301.3 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.111, allocations: 49.45 MB / 350.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004006/0.1151, allocations: 2.3 MB / 353 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1167, allocations: 0.7715 MB / 353.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.1168, allocations: 11.94 kB / 353.8 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003181/0.1172, allocations: 51.56 kB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.1174, allocations: 55.5 kB / 353.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.1179, allocations: 186.2 kB / 354.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004055/0.1184, allocations: 367.6 kB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1186, allocations: 91.25 kB / 354.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002308/0.1188, allocations: 159.5 kB / 354.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.1191, allocations: 175.3 kB / 354.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.304e-05/0.1191, allocations: 32 kB / 354.9 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.542e-05/0.1192, allocations: 32 kB / 354.9 MB, free: 224 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1193, allocations: 95.72 kB / 355 MB, free: 128 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1195, allocations: 143.3 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003411/0.1198, allocations: 327.1 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.1199, allocations: 0 / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1199, allocations: 0 / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1199, allocations: 0 / 355.5 MB, free: 15.66 MB / 302.1 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.001215/0.1211, allocations: 0.6084 MB / 356.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1211, allocations: 15.89 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.898e-05/0.1212, allocations: 36.56 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.1216, allocations: 264.4 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/0.1218, allocations: 138.2 kB / 356.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.1219, allocations: 32.38 kB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.1232, allocations: 0.5644 MB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.1232, allocations: 0 / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.1233, allocations: 12 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1233, allocations: 8 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.1249, allocations: 0.5118 MB / 357.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.1266, allocations: 0.9904 MB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.1283, allocations: 0.5102 MB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000634/0.1289, allocations: 263.4 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.861e-05/0.129, allocations: 12.14 kB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.129, allocations: 42.5 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.564e-06/0.129, allocations: 0 / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03975/0.1688, allocations: 5.695 MB / 365.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.169, allocations: 153 kB / 365.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.1692, allocations: 207 kB / 365.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.051e-05/0.1693, allocations: 37.7 kB / 365.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.948e-05/0.1694, allocations: 141.5 kB / 365.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.1696, allocations: 185.4 kB / 365.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003001/0.1699, allocations: 114.6 kB / 366 MB, free: 4.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1701, allocations: 342.8 kB / 366.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.1717, allocations: 0.6149 MB / 366.9 MB, free: 3.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/0.1734, allocations: 0.8002 MB / 367.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003119/0.1766, allocations: 1.247 MB / 369 MB, free: 1.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1766, allocations: 0 / 369 MB, free: 1.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003671/0.1803, allocations: 1.398 MB / 370.4 MB, free: 268 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.1803, allocations: 8 kB / 370.4 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.1803, allocations: 4 kB / 370.4 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.395e-05/0.1804, allocations: 12.16 kB / 370.4 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.1818, allocations: 207.7 kB / 370.6 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.219e-05/0.1818, allocations: 15.92 kB / 370.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1784/0.3603, allocations: 96.58 kB / 370.7 MB, free: 26.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.3604, allocations: 29.16 kB / 370.7 MB, free: 26.32 MB / 302.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.000346/0.3608, allocations: 179.5 kB / 370.9 MB, free: 26.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/0.3611, allocations: 153.9 kB / 371.1 MB, free: 26.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.3613, allocations: 62.22 kB / 371.1 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.3613, allocations: 7.906 kB / 371.1 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.3613, allocations: 4.594 kB / 371.1 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.3614, allocations: 4.688 kB / 371.2 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004973/0.3663, allocations: 2.169 MB / 373.3 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.3664, allocations: 9.531 kB / 373.3 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007721/0.3672, allocations: 190.1 kB / 373.5 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.3672, allocations: 14.62 kB / 373.5 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-05/0.3672, allocations: 26.2 kB / 373.6 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.363e-05/0.3673, allocations: 22.38 kB / 373.6 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/0.3673, allocations: 16.09 kB / 373.6 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.3704, allocations: 1.558 MB / 375.2 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.3706, allocations: 167.8 kB / 375.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.319e-05/0.3707, allocations: 25.78 kB / 375.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005678/0.3713, allocations: 80.27 kB / 375.4 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.3715, allocations: 91.48 kB / 375.5 MB, free: 24.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.3715, allocations: 29.69 kB / 375.5 MB, free: 24.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001247/0.3717, allocations: 137.7 kB / 375.7 MB, free: 24.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3717, allocations: 0 / 375.7 MB, free: 24.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006935/0.3724, allocations: 126 kB / 375.8 MB, free: 24.21 MB / 302.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.0001543/0.3725, allocations: 142.8 kB / 375.9 MB, free: 24.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.3754, allocations: 1.153 MB / 377.1 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/0.3754, allocations: 1.344 kB / 377.1 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.3769, allocations: 348.2 kB / 377.4 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3784, allocations: 136.5 kB / 377.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003362/0.3818, allocations: 1.203 MB / 378.8 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.3823, allocations: 0.8128 MB / 379.6 MB, free: 21.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.3828, allocations: 45.11 kB / 379.6 MB, free: 21.92 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3828, allocations: 3.938 kB / 379.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of Templates: time 0.01785/0.4007, allocations: 7.09 MB / 386.7 MB, free: 19.45 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches