Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001406/0.001406, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001456/0.001456, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.463/1.463, allocations: 227.7 MB / 247.7 MB, free: 10.41 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 62.08 kB / 307.9 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1187, allocations: 50.54 MB / 358.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004428/0.1231, allocations: 2.383 MB / 360.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.125, allocations: 0.8689 MB / 361.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.1253, allocations: 7.938 kB / 361.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.1256, allocations: 63.5 kB / 361.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.1259, allocations: 63.47 kB / 361.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006036/0.1265, allocations: 198.8 kB / 362 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.1269, allocations: 387.5 kB / 362.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002283/0.1272, allocations: 107.5 kB / 362.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003136/0.1275, allocations: 167.4 kB / 362.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.1278, allocations: 183.2 kB / 362.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.1279, allocations: 32 kB / 362.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.096e-05/0.1279, allocations: 36 kB / 362.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.1281, allocations: 103.7 kB / 363 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.1283, allocations: 171 kB / 363.2 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004279/0.1287, allocations: 351.1 kB / 363.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1287, allocations: 0 / 363.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1287, allocations: 3.938 kB / 363.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1287, allocations: 0 / 363.5 MB, free: 8.867 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.001371/0.1301, allocations: 0.6703 MB / 364.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1302, allocations: 12.03 kB / 364.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.927e-05/0.1303, allocations: 52.47 kB / 364.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004321/0.1307, allocations: 299.1 kB / 364.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.1309, allocations: 134.3 kB / 364.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.256e-05/0.131, allocations: 32.38 kB / 364.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1323, allocations: 0.5661 MB / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.1323, allocations: 0 / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.1324, allocations: 16 kB / 365.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1324, allocations: 8 kB / 365.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.1339, allocations: 0.5073 MB / 365.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.1356, allocations: 1.029 MB / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.1374, allocations: 0.5128 MB / 367.3 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006678/0.138, allocations: 255.3 kB / 367.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-05/0.1381, allocations: 11.98 kB / 367.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.1382, allocations: 42.56 kB / 367.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.525e-06/0.1382, allocations: 0 / 367.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2374/0.3755, allocations: 5.749 MB / 373.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.873e-05/0.3757, allocations: 147.8 kB / 373.5 MB, free: 20.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.376, allocations: 259.3 kB / 373.8 MB, free: 20.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.486e-05/0.3761, allocations: 37.27 kB / 373.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.3762, allocations: 154.5 kB / 374 MB, free: 20.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.3764, allocations: 196.3 kB / 374.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003024/0.3768, allocations: 114.9 kB / 374.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.3768, allocations: 344.5 kB / 374.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001711/0.3786, allocations: 0.6146 MB / 375.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.3805, allocations: 0.798 MB / 376 MB, free: 18.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.3836, allocations: 1.253 MB / 377.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.3836, allocations: 1.375 kB / 377.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0038/0.3874, allocations: 1.395 MB / 378.7 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.3875, allocations: 7.203 kB / 378.7 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3875, allocations: 6.188 kB / 378.7 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.521e-05/0.3876, allocations: 12.83 kB / 378.7 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.389, allocations: 211.5 kB / 378.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.758e-05/0.389, allocations: 14.41 kB / 378.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.3901, allocations: 102.9 kB / 379 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.3902, allocations: 27.19 kB / 379 MB, free: 17.68 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.0003424/0.3905, allocations: 191.8 kB / 379.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003312/0.3908, allocations: 161.1 kB / 379.4 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.391, allocations: 72.88 kB / 379.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.3911, allocations: 7.875 kB / 379.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/0.3911, allocations: 1.094 kB / 379.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.3911, allocations: 4.594 kB / 379.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004888/0.396, allocations: 2.189 MB / 381.7 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.281e-05/0.3961, allocations: 10.69 kB / 381.7 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000847/0.3969, allocations: 186.9 kB / 381.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.196e-05/0.397, allocations: 13.66 kB / 381.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.397, allocations: 24.31 kB / 381.9 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.991e-05/0.397, allocations: 20.7 kB / 381.9 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.287e-05/0.3971, allocations: 18.78 kB / 381.9 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/0.4004, allocations: 1.557 MB / 383.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/0.4008, allocations: 174.1 kB / 383.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/0.4009, allocations: 30.31 kB / 383.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006441/0.4015, allocations: 77.77 kB / 383.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.4018, allocations: 93.06 kB / 383.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.988e-05/0.4019, allocations: 34.55 kB / 383.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.4021, allocations: 186.1 kB / 384.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4021, allocations: 0.5469 kB / 384.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008379/0.4029, allocations: 124.3 kB / 384.2 MB, free: 14.9 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.0001783/0.4031, allocations: 141.6 kB / 384.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003281/0.4064, allocations: 1.154 MB / 385.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-05/0.4065, allocations: 2.094 kB / 385.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.4077, allocations: 344 kB / 385.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.4089, allocations: 152.9 kB / 386 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/0.4117, allocations: 1.264 MB / 387.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.4122, allocations: 0.831 MB / 388.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004274/0.4126, allocations: 45.75 kB / 388.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4126, allocations: 0 / 388.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01517/0.4278, allocations: 7.355 MB / 395.5 MB, free: 9.188 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches