Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 105.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.66 kB / 306.3 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09853, allocations: 50.53 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004237/0.1028, allocations: 2.428 MB / 359.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1044, allocations: 0.8535 MB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.1046, allocations: 8 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.1049, allocations: 43.69 kB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002121/0.1051, allocations: 59.67 kB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.1057, allocations: 175.7 kB / 360.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.106, allocations: 371.5 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.1062, allocations: 94.55 kB / 360.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.1064, allocations: 163.4 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.1067, allocations: 175.2 kB / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.1067, allocations: 23.94 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.645e-05/0.1068, allocations: 20 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.1069, allocations: 107.6 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.1071, allocations: 143.1 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.1074, allocations: 343.1 kB / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1074, allocations: 0 / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1074, allocations: 0 / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.1074, allocations: 0 / 361.8 MB, free: 9.543 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.001125/0.1085, allocations: 0.6781 MB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.1086, allocations: 12.03 kB / 362.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.705e-05/0.1086, allocations: 44.47 kB / 362.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.109, allocations: 299.1 kB / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.1092, allocations: 138.3 kB / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.1092, allocations: 32.31 kB / 362.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.1103, allocations: 0.5755 MB / 363.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1104, allocations: 7.938 kB / 363.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.1104, allocations: 12 kB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.1104, allocations: 4 kB / 363.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1117, allocations: 0.5113 MB / 364.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.1131, allocations: 1.025 MB / 365.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1146, allocations: 0.4946 MB / 365.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005799/0.1152, allocations: 259.4 kB / 365.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.767e-05/0.1153, allocations: 8.141 kB / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1153, allocations: 50.48 kB / 365.9 MB, free: 5.145 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.984e-06/0.1153, allocations: 0 / 365.9 MB, free: 5.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2101/0.3254, allocations: 5.753 MB / 371.6 MB, free: 20.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.851e-05/0.3255, allocations: 150 kB / 371.8 MB, free: 20.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.3258, allocations: 261.8 kB / 372 MB, free: 20.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.989e-05/0.3258, allocations: 38.98 kB / 372.1 MB, free: 20.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.297e-05/0.3259, allocations: 145.5 kB / 372.2 MB, free: 20.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.3261, allocations: 198.3 kB / 372.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.3264, allocations: 117.1 kB / 372.5 MB, free: 20.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.3265, allocations: 343.9 kB / 372.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/0.328, allocations: 0.6175 MB / 373.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.3295, allocations: 0.797 MB / 374.3 MB, free: 19.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/0.3327, allocations: 1.246 MB / 375.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.3327, allocations: 2.562 kB / 375.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003612/0.3363, allocations: 1.399 MB / 376.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3364, allocations: 7.344 kB / 376.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3364, allocations: 6.062 kB / 376.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.3364, allocations: 12.89 kB / 377 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3377, allocations: 209.9 kB / 377.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.3377, allocations: 15.2 kB / 377.2 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009438/0.3387, allocations: 102.2 kB / 377.3 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.199e-05/0.3388, allocations: 25.8 kB / 377.3 MB, free: 18.13 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.00028/0.3391, allocations: 193 kB / 377.5 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002835/0.3394, allocations: 159.2 kB / 377.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001487/0.3395, allocations: 68.78 kB / 377.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3395, allocations: 8.844 kB / 377.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.3396, allocations: 4.969 kB / 377.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.3396, allocations: 5.062 kB / 377.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00438/0.344, allocations: 2.191 MB / 379.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/0.344, allocations: 11.22 kB / 379.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007214/0.3447, allocations: 182.7 kB / 380.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.558e-05/0.3447, allocations: 14.25 kB / 380.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.816e-05/0.3448, allocations: 28.59 kB / 380.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.592e-05/0.3448, allocations: 19.84 kB / 380.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.3448, allocations: 16.16 kB / 380.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.3477, allocations: 1.564 MB / 381.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.3479, allocations: 178.4 kB / 381.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.348, allocations: 26.84 kB / 382 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000563/0.3486, allocations: 80.17 kB / 382 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.3488, allocations: 93.2 kB / 382.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.596e-05/0.3489, allocations: 38.12 kB / 382.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002028/0.3491, allocations: 189.8 kB / 382.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3491, allocations: 5.312 kB / 382.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006944/0.3498, allocations: 120.1 kB / 382.5 MB, free: 15.34 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.0001343/0.3499, allocations: 136 kB / 382.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.3525, allocations: 1.121 MB / 383.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3525, allocations: 2.75 kB / 383.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009165/0.3534, allocations: 340.8 kB / 384.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008991/0.3543, allocations: 152.6 kB / 384.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.3565, allocations: 1.39 MB / 385.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.3568, allocations: 0.8261 MB / 386.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005854/0.3574, allocations: 98.92 kB / 386.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.3577, allocations: 42.89 kB / 386.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3577, allocations: 0 / 386.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of Templates: time 0.01171/0.3694, allocations: 7.805 MB / 394.4 MB, free: 9.527 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches