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.001249/0.001249, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001232/0.001231, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 60.16 kB / 308.3 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09138, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003476/0.09488, allocations: 2.383 MB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.09629, allocations: 0.8728 MB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.09645, allocations: 11.94 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.09672, allocations: 51.52 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.09694, allocations: 67.48 kB / 362.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.09747, allocations: 199.6 kB / 362.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.09783, allocations: 391.5 kB / 362.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001914/0.09803, allocations: 103.5 kB / 362.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.09828, allocations: 167.4 kB / 363.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.09852, allocations: 183.2 kB / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.087e-05/0.09858, allocations: 36 kB / 363.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.036e-05/0.09863, allocations: 32 kB / 363.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.09875, allocations: 99.72 kB / 363.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.0989, allocations: 179 kB / 363.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.09924, allocations: 362.7 kB / 364 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09925, allocations: 0 / 364 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09926, allocations: 4 kB / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.09927, allocations: 0 / 364 MB, free: 8.23 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.00115/0.1004, allocations: 0.6741 MB / 364.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.1005, allocations: 8.031 kB / 364.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.483e-05/0.1005, allocations: 44.47 kB / 364.7 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.101, allocations: 319.1 kB / 365 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.1012, allocations: 134.3 kB / 365.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-05/0.1012, allocations: 32.38 kB / 365.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.1023, allocations: 0.5639 MB / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1023, allocations: 0 / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.1024, allocations: 12 kB / 365.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1024, allocations: 8 kB / 365.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.1036, allocations: 0.5074 MB / 366.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.1052, allocations: 1.025 MB / 367.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.1066, allocations: 0.5098 MB / 367.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.1072, allocations: 266.9 kB / 368.1 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.194e-05/0.1073, allocations: 8 kB / 368.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.1073, allocations: 38.56 kB / 368.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.973e-06/0.1073, allocations: 0 / 368.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1994/0.3067, allocations: 5.753 MB / 373.9 MB, free: 20.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.3068, allocations: 151.6 kB / 374 MB, free: 20.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.3071, allocations: 254.3 kB / 374.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-05/0.3072, allocations: 42.11 kB / 374.3 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.934e-05/0.3073, allocations: 157.1 kB / 374.5 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.3074, allocations: 189.8 kB / 374.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.3077, allocations: 115.8 kB / 374.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.135e-05/0.3078, allocations: 343.2 kB / 375.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.3093, allocations: 0.6174 MB / 375.7 MB, free: 19.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.3108, allocations: 0.8018 MB / 376.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.3134, allocations: 1.253 MB / 377.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3134, allocations: 5.406 kB / 377.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00312/0.3166, allocations: 1.393 MB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3166, allocations: 9.828 kB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.3166, allocations: 6.375 kB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.3166, allocations: 8.969 kB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.3179, allocations: 208 kB / 379.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.318, allocations: 13.94 kB / 379.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009166/0.3189, allocations: 103.8 kB / 379.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.509e-05/0.319, allocations: 27 kB / 379.5 MB, free: 17.79 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.0002717/0.3193, allocations: 198.4 kB / 379.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.3195, allocations: 160.8 kB / 379.9 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.3197, allocations: 70.67 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.3197, allocations: 6.625 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.3197, allocations: 0.6562 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.3197, allocations: 7.172 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004402/0.3241, allocations: 2.185 MB / 382.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.3241, allocations: 13.47 kB / 382.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007233/0.3249, allocations: 182.8 kB / 382.3 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.614e-05/0.3249, allocations: 14.44 kB / 382.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.325, allocations: 28.58 kB / 382.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.611e-05/0.325, allocations: 19.64 kB / 382.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/0.325, allocations: 15.75 kB / 382.4 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002872/0.3279, allocations: 1.56 MB / 384 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.3281, allocations: 182.6 kB / 384.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.741e-05/0.3282, allocations: 30.58 kB / 384.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005626/0.3288, allocations: 77.83 kB / 384.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.329, allocations: 96.98 kB / 384.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.284e-05/0.329, allocations: 30.62 kB / 384.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001653/0.3292, allocations: 185.6 kB / 384.6 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3292, allocations: 1.062 kB / 384.6 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007045/0.3299, allocations: 123.6 kB / 384.7 MB, free: 14.98 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.0001393/0.3301, allocations: 141.1 kB / 384.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.3326, allocations: 1.131 MB / 386 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3327, allocations: 12.59 kB / 386 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009078/0.3336, allocations: 336.5 kB / 386.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/0.3346, allocations: 150.7 kB / 386.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.3368, allocations: 1.219 MB / 387.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.3371, allocations: 0.8401 MB / 388.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004689/0.3376, allocations: 98.92 kB / 388.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002733/0.3378, allocations: 39.52 kB / 388.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3379, allocations: 0 / 388.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01279/0.3506, allocations: 8.419 MB / 397.1 MB, free: 7.992 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 -s gbode -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/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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches