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.001735/0.001735, allocations: 108.2 kB / 17.16 MB, free: 6.082 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.002065/0.002065, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.619/2.619, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002158, allocations: 49.2 kB / 300.6 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2067, allocations: 49.44 MB / 350 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.008623/0.2154, allocations: 2.42 MB / 352.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003443/0.2189, allocations: 0.8223 MB / 353.3 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004969/0.2195, allocations: 11.94 kB / 353.3 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006453/0.2203, allocations: 39.7 kB / 353.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007214/0.221, allocations: 51.69 kB / 353.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001457/0.2225, allocations: 178.1 kB / 353.6 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.2236, allocations: 371.5 kB / 353.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004352/0.224, allocations: 95.36 kB / 354 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00054/0.2246, allocations: 147.4 kB / 354.2 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005313/0.2251, allocations: 179.2 kB / 354.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.2253, allocations: 20 kB / 354.4 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.2254, allocations: 24 kB / 354.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.2257, allocations: 91.7 kB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003809/0.2261, allocations: 163 kB / 354.6 MB, free: 268 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005603/0.2267, allocations: 259.7 kB / 354.9 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.2267, allocations: 0 / 354.9 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.2267, allocations: 0 / 354.9 MB, free: 8 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.2268, allocations: 0 / 354.9 MB, free: 8 kB / 286.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.00282/0.2296, allocations: 0.6664 MB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.425e-05/0.2297, allocations: 12.02 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.2299, allocations: 52.41 kB / 355.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008252/0.2308, allocations: 299.1 kB / 355.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003747/0.2312, allocations: 138.3 kB / 356 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.2313, allocations: 32.38 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/0.2337, allocations: 0.57 MB / 356.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.861e-05/0.2338, allocations: 11.84 kB / 356.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.2339, allocations: 8 kB / 356.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.2339, allocations: 8 kB / 356.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002363/0.2363, allocations: 0.5113 MB / 357.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003001/0.2393, allocations: 1.018 MB / 358.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002937/0.2423, allocations: 0.5024 MB / 358.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.2435, allocations: 259.4 kB / 359 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.404e-05/0.2436, allocations: 12.14 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/0.2437, allocations: 38.56 kB / 359 MB, free: 11.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 5.09e-06/0.2437, allocations: 3.938 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.07329/0.317, allocations: 5.75 MB / 364.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/0.3173, allocations: 152.9 kB / 364.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.3179, allocations: 262.5 kB / 365.2 MB, free: 5.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001729/0.3181, allocations: 37.7 kB / 365.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.3183, allocations: 141.6 kB / 365.3 MB, free: 5.223 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004031/0.3187, allocations: 193.3 kB / 365.5 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005566/0.3193, allocations: 114.6 kB / 365.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.3195, allocations: 346.8 kB / 366 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/0.3223, allocations: 0.6188 MB / 366.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003456/0.3258, allocations: 0.8002 MB / 367.4 MB, free: 3.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00629/0.3321, allocations: 1.251 MB / 368.6 MB, free: 1.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.005e-05/0.3322, allocations: 0 / 368.6 MB, free: 1.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007432/0.3397, allocations: 1.401 MB / 370 MB, free: 348 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/0.3398, allocations: 8.75 kB / 370.1 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.886e-05/0.3399, allocations: 12 kB / 370.1 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.653e-05/0.34, allocations: 8 kB / 370.1 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002579/0.3426, allocations: 207.6 kB / 370.3 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-05/0.3426, allocations: 15.88 kB / 370.3 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4101/0.7527, allocations: 100.8 kB / 370.4 MB, free: 26.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003651/0.7532, allocations: 31.03 kB / 370.4 MB, free: 26.53 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.0006737/0.7539, allocations: 187 kB / 370.6 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007283/0.7546, allocations: 156.6 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.7549, allocations: 71.22 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.7549, allocations: 8.453 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.755, allocations: 1.031 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.755, allocations: 5.922 kB / 370.8 MB, free: 26.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009666/0.7647, allocations: 2.189 MB / 373 MB, free: 25.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-05/0.7648, allocations: 11.3 kB / 373 MB, free: 25.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.7664, allocations: 181.8 kB / 373.2 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-05/0.7665, allocations: 14.16 kB / 373.2 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001333/0.7666, allocations: 23.69 kB / 373.3 MB, free: 25.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.931e-05/0.7667, allocations: 20.44 kB / 373.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-05/0.7667, allocations: 19 kB / 373.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006413/0.7731, allocations: 1.569 MB / 374.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006294/0.7738, allocations: 180.2 kB / 375 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/0.7741, allocations: 25.66 kB / 375.1 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.7754, allocations: 73.7 kB / 375.1 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004887/0.7759, allocations: 95.19 kB / 375.2 MB, free: 24.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.7761, allocations: 31.53 kB / 375.3 MB, free: 24.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004778/0.7766, allocations: 189.3 kB / 375.4 MB, free: 24.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7766, allocations: 0 / 375.4 MB, free: 24.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001571/0.7782, allocations: 123.5 kB / 375.6 MB, free: 24.38 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.0003348/0.7786, allocations: 139.9 kB / 375.7 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004693/0.7833, allocations: 1.122 MB / 376.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.183e-05/0.7834, allocations: 1.219 kB / 376.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.7851, allocations: 337.9 kB / 377.2 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/0.7871, allocations: 164.7 kB / 377.3 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005045/0.7922, allocations: 1.438 MB / 378.8 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009856/0.7933, allocations: 0.8298 MB / 379.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/0.794, allocations: 41.47 kB / 379.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.144e-06/0.794, allocations: 0 / 379.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of Templates: time 0.03086/0.8249, allocations: 7.331 MB / 387 MB, free: 19.29 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 -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