Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001016/0.001016, allocations: 192 kB / 18.62 MB, free: 4.562 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.281/1.281, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 46.64 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09454, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003475/0.09805, allocations: 2.373 MB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.0994, allocations: 0.8339 MB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.09955, allocations: 7.938 kB / 354.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.09985, allocations: 59.5 kB / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.1001, allocations: 63.42 kB / 354.8 MB, free: 336 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.1006, allocations: 203.2 kB / 355 MB, free: 136 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003789/0.101, allocations: 387.6 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.1012, allocations: 99.42 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.1014, allocations: 167.4 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.1016, allocations: 183.2 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.53e-05/0.1017, allocations: 32 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.943e-05/0.1017, allocations: 40 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.1018, allocations: 99.72 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.102, allocations: 167 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00033/0.1023, allocations: 366.7 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1023, allocations: 0 / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1023, allocations: 0 / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.609e-06/0.1023, allocations: 0 / 356.5 MB, free: 14.62 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001174/0.1035, allocations: 0.6742 MB / 357.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.1036, allocations: 11.89 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.758e-05/0.1037, allocations: 44.47 kB / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.1041, allocations: 319.1 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.1043, allocations: 138.3 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.863e-05/0.1044, allocations: 28.38 kB / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.1054, allocations: 0.5739 MB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1055, allocations: 11.89 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.1055, allocations: 12 kB / 358.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1055, allocations: 8 kB / 358.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1068, allocations: 0.504 MB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.1082, allocations: 1.021 MB / 359.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.1097, allocations: 0.5024 MB / 360.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005832/0.1103, allocations: 263.3 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.731e-05/0.1104, allocations: 12.12 kB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1104, allocations: 38.56 kB / 360.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.783e-06/0.1104, allocations: 0 / 360.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03725/0.1477, allocations: 5.755 MB / 366.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.1478, allocations: 149 kB / 366.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.1481, allocations: 262.5 kB / 366.8 MB, free: 3.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.899e-05/0.1482, allocations: 37.7 kB / 366.9 MB, free: 3.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.423e-05/0.1483, allocations: 141.6 kB / 367 MB, free: 3.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.1484, allocations: 189.3 kB / 367.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/0.1487, allocations: 118.6 kB / 367.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1489, allocations: 350.8 kB / 367.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/0.1504, allocations: 0.611 MB / 368.3 MB, free: 2.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.152, allocations: 0.8002 MB / 369.1 MB, free: 1.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002808/0.1548, allocations: 1.247 MB / 370.3 MB, free: 348 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.1548, allocations: 8 kB / 370.3 MB, free: 340 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1639/0.3187, allocations: 1.396 MB / 371.7 MB, free: 26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.3188, allocations: 8.703 kB / 371.7 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.3188, allocations: 6.594 kB / 371.7 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.058e-05/0.3188, allocations: 9.484 kB / 371.7 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.3202, allocations: 208.4 kB / 371.9 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/0.3202, allocations: 14 kB / 371.9 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009238/0.3212, allocations: 106.9 kB / 372.1 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.3213, allocations: 31.44 kB / 372.1 MB, free: 26 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.0003036/0.3216, allocations: 186.2 kB / 372.3 MB, free: 25.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.3219, allocations: 160.7 kB / 372.4 MB, free: 25.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001579/0.322, allocations: 69.11 kB / 372.5 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3221, allocations: 7.906 kB / 372.5 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3221, allocations: 1.719 kB / 372.5 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3221, allocations: 5.656 kB / 372.5 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004512/0.3266, allocations: 2.18 MB / 374.7 MB, free: 24.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.3266, allocations: 9.625 kB / 374.7 MB, free: 24.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000718/0.3274, allocations: 187.5 kB / 374.9 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.685e-05/0.3274, allocations: 13.75 kB / 374.9 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.3274, allocations: 25.33 kB / 374.9 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.238e-05/0.3275, allocations: 25.98 kB / 374.9 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.3275, allocations: 14.94 kB / 375 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/0.3303, allocations: 1.562 MB / 376.5 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/0.3305, allocations: 182.6 kB / 376.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.3306, allocations: 27.34 kB / 376.7 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005457/0.3312, allocations: 77.38 kB / 376.8 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.3314, allocations: 99.02 kB / 376.9 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.306e-05/0.3315, allocations: 30 kB / 376.9 MB, free: 23.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.3317, allocations: 186.4 kB / 377.1 MB, free: 23.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3317, allocations: 0 / 377.1 MB, free: 23.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006959/0.3324, allocations: 124.1 kB / 377.2 MB, free: 23.5 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.0001728/0.3326, allocations: 144.2 kB / 377.4 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.3354, allocations: 1.143 MB / 378.5 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.3354, allocations: 1.656 kB / 378.5 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.3365, allocations: 344 kB / 378.8 MB, free: 22.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.3375, allocations: 152.9 kB / 379 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.3397, allocations: 1.218 MB / 380.2 MB, free: 21.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.3401, allocations: 0.8326 MB / 381 MB, free: 21.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004702/0.3406, allocations: 101 kB / 381.1 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.3409, allocations: 42.05 kB / 381.2 MB, free: 21.17 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3409, allocations: 1.219 kB / 381.2 MB, free: 21.17 MB / 302.1 MB Notification: Performance of Templates: time 0.01389/0.3548, allocations: 8.409 MB / 389.6 MB, free: 17.93 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches