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.001343/0.001343, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001393/0.001393, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.331/1.331, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009451/0.0009451, allocations: 46.94 kB / 299.9 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08775, allocations: 49.45 MB / 349.4 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00343/0.09122, allocations: 2.427 MB / 351.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.09277, allocations: 0.8145 MB / 352.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.09295, allocations: 11.94 kB / 352.6 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.0933, allocations: 43.69 kB / 352.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002035/0.09352, allocations: 51.67 kB / 352.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005595/0.09408, allocations: 168.4 kB / 352.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004018/0.09449, allocations: 379.5 kB / 353.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.09471, allocations: 95.36 kB / 353.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.09492, allocations: 151.4 kB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.09514, allocations: 175.2 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.0952, allocations: 20 kB / 353.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.191e-05/0.09526, allocations: 24 kB / 353.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.09538, allocations: 91.66 kB / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.09552, allocations: 159.1 kB / 354 MB, free: 256 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.09584, allocations: 343.1 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.09585, allocations: 4 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.09585, allocations: 0 / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.09587, allocations: 0 / 354.3 MB, free: 15.91 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.00124/0.09711, allocations: 0.6703 MB / 355 MB, free: 15.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.09716, allocations: 12.02 kB / 355 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.369e-05/0.09725, allocations: 44.47 kB / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.09762, allocations: 307.1 kB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.09781, allocations: 134.3 kB / 355.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.09788, allocations: 36.38 kB / 355.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.09903, allocations: 0.57 MB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.09906, allocations: 3.906 kB / 356.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.0991, allocations: 12 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.09912, allocations: 8 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.1004, allocations: 0.5113 MB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.102, allocations: 1.018 MB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.1035, allocations: 0.5024 MB / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005707/0.1041, allocations: 267.3 kB / 358.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.096e-05/0.1041, allocations: 8.141 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1041, allocations: 38.56 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.724e-06/0.1042, allocations: 0 / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03871/0.1429, allocations: 5.754 MB / 364.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.832e-05/0.143, allocations: 153.2 kB / 364.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.1433, allocations: 262.5 kB / 364.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.256e-05/0.1434, allocations: 33.7 kB / 364.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.864e-05/0.1434, allocations: 145.6 kB / 364.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1437, allocations: 193.3 kB / 365 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.144, allocations: 110.6 kB / 365.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1441, allocations: 346.8 kB / 365.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.1456, allocations: 0.6226 MB / 366 MB, free: 3.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.1471, allocations: 0.8002 MB / 366.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/0.1499, allocations: 1.251 MB / 368.1 MB, free: 1.645 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.1499, allocations: 0 / 368.1 MB, free: 1.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003232/0.1531, allocations: 1.401 MB / 369.5 MB, free: 244 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1531, allocations: 8 kB / 369.5 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1532, allocations: 4 kB / 369.5 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.1532, allocations: 12.25 kB / 369.5 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.1545, allocations: 211.6 kB / 369.7 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1652/0.3197, allocations: 9.875 kB / 369.7 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.321, allocations: 96.81 kB / 369.8 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.3212, allocations: 29.95 kB / 369.8 MB, free: 26.42 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.0003806/0.3215, allocations: 189.9 kB / 370 MB, free: 26.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003582/0.3219, allocations: 166.1 kB / 370.2 MB, free: 26.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.3221, allocations: 67.2 kB / 370.3 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.3221, allocations: 9.391 kB / 370.3 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.3221, allocations: 1.625 kB / 370.3 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3221, allocations: 3.734 kB / 370.3 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004698/0.3268, allocations: 2.186 MB / 372.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-05/0.3269, allocations: 10.97 kB / 372.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007471/0.3276, allocations: 186.5 kB / 372.6 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-05/0.3277, allocations: 14.47 kB / 372.7 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.416e-05/0.3277, allocations: 24.05 kB / 372.7 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-05/0.3277, allocations: 19.91 kB / 372.7 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/0.3278, allocations: 15.09 kB / 372.7 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.3305, allocations: 1.568 MB / 374.3 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.3307, allocations: 181.5 kB / 374.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.068e-05/0.3308, allocations: 33.36 kB / 374.5 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005487/0.3313, allocations: 77.48 kB / 374.6 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.3315, allocations: 95.27 kB / 374.7 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.3316, allocations: 30.92 kB / 374.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001855/0.3318, allocations: 185.7 kB / 374.9 MB, free: 24.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3318, allocations: 0 / 374.9 MB, free: 24.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006395/0.3324, allocations: 123.1 kB / 375 MB, free: 24.27 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.00013/0.3326, allocations: 141.5 kB / 375.1 MB, free: 24.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.335, allocations: 1.116 MB / 376.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3351, allocations: 9.281 kB / 376.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008965/0.336, allocations: 344 kB / 376.6 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008967/0.3369, allocations: 151.9 kB / 376.7 MB, free: 23.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.339, allocations: 1.397 MB / 378.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3393, allocations: 0.8301 MB / 379 MB, free: 21.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005601/0.3398, allocations: 93.11 kB / 379.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.3401, allocations: 38.8 kB / 379.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3401, allocations: 0 / 379.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01176/0.3519, allocations: 7.804 MB / 386.9 MB, free: 19.09 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/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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches