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.001496/0.001496, allocations: 112.8 kB / 17.68 MB, free: 5.332 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.001656/0.001656, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.404/1.404, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001162, allocations: 49.08 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1169, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004273/0.1212, allocations: 2.366 MB / 353.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.123, allocations: 0.8377 MB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003399/0.1234, allocations: 7.938 kB / 354.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.1237, allocations: 55.56 kB / 354.8 MB, free: 404 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.124, allocations: 63.47 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006672/0.1247, allocations: 198.1 kB / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.1252, allocations: 399.4 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.1254, allocations: 99.5 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.1256, allocations: 163.4 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.1259, allocations: 187.2 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.356e-05/0.1259, allocations: 32 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.949e-05/0.126, allocations: 36 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.1261, allocations: 103.7 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1263, allocations: 163 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.1267, allocations: 370.7 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1267, allocations: 0 / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1267, allocations: 0 / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1267, allocations: 4 kB / 356.5 MB, free: 14.61 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.001312/0.128, allocations: 0.6665 MB / 357.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1281, allocations: 11.89 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.444e-05/0.1282, allocations: 52.47 kB / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005132/0.1287, allocations: 315.1 kB / 357.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.1289, allocations: 138.3 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.26e-05/0.129, allocations: 28.38 kB / 357.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.1301, allocations: 0.574 MB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.1302, allocations: 7.891 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.1302, allocations: 15.94 kB / 358.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.1302, allocations: 8 kB / 358.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.1315, allocations: 0.5079 MB / 358.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.1331, allocations: 1.018 MB / 359.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.1346, allocations: 0.5103 MB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006011/0.1352, allocations: 258.3 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.59e-05/0.1353, allocations: 8 kB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1353, allocations: 46.55 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.813e-06/0.1353, allocations: 0 / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03423/0.1696, allocations: 5.746 MB / 366.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.1697, allocations: 145.3 kB / 366.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.17, allocations: 262.5 kB / 366.8 MB, free: 4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.728e-05/0.1701, allocations: 41.64 kB / 366.9 MB, free: 3.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.827e-05/0.1702, allocations: 145.6 kB / 367 MB, free: 3.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.1704, allocations: 193.3 kB / 367.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/0.1707, allocations: 122.6 kB / 367.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1708, allocations: 346.8 kB / 367.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.1723, allocations: 0.611 MB / 368.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.1738, allocations: 0.7964 MB / 369.1 MB, free: 1.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002718/0.1765, allocations: 1.247 MB / 370.3 MB, free: 344 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1766, allocations: 8 kB / 370.3 MB, free: 336 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1971/0.3736, allocations: 1.394 MB / 371.7 MB, free: 26.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.3737, allocations: 7.625 kB / 371.7 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.335e-05/0.3738, allocations: 4.844 kB / 371.7 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.432e-05/0.3738, allocations: 13.58 kB / 371.7 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002062/0.3759, allocations: 207.8 kB / 371.9 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.753e-05/0.376, allocations: 13.45 kB / 371.9 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.3775, allocations: 100.5 kB / 372 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.3776, allocations: 33.8 kB / 372.1 MB, free: 26.07 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.0005015/0.3782, allocations: 196.2 kB / 372.3 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000564/0.3787, allocations: 158.7 kB / 372.4 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002208/0.379, allocations: 68.92 kB / 372.5 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.998e-05/0.379, allocations: 10.53 kB / 372.5 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.379, allocations: 1.562 kB / 372.5 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.3791, allocations: 4.891 kB / 372.5 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007763/0.3868, allocations: 2.18 MB / 374.7 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-05/0.3869, allocations: 10.97 kB / 374.7 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.3882, allocations: 183.5 kB / 374.9 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.089e-05/0.3883, allocations: 16.62 kB / 374.9 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.3884, allocations: 30.31 kB / 374.9 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.658e-05/0.3884, allocations: 28.05 kB / 375 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-05/0.3885, allocations: 18.69 kB / 375 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004656/0.3931, allocations: 1.558 MB / 376.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/0.3936, allocations: 178.9 kB / 376.7 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.3937, allocations: 26.12 kB / 376.7 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009531/0.3947, allocations: 80.94 kB / 376.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003282/0.395, allocations: 97.36 kB / 376.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/0.3951, allocations: 29.97 kB / 376.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003211/0.3954, allocations: 186 kB / 377.1 MB, free: 23.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.704e-06/0.3954, allocations: 0 / 377.1 MB, free: 23.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001251/0.3967, allocations: 129.9 kB / 377.2 MB, free: 23.55 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.0001979/0.3969, allocations: 133.3 kB / 377.4 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004975/0.4019, allocations: 1.137 MB / 378.5 MB, free: 23.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/0.402, allocations: 2.469 kB / 378.5 MB, free: 23.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.404, allocations: 344 kB / 378.8 MB, free: 22.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.4058, allocations: 150.2 kB / 379 MB, free: 22.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.41, allocations: 1.227 MB / 380.2 MB, free: 21.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006983/0.4107, allocations: 0.8298 MB / 381.1 MB, free: 21.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001131/0.4118, allocations: 100 kB / 381.1 MB, free: 21.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.4124, allocations: 42.81 kB / 381.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of SimCode: time 1.502e-06/0.4124, allocations: 0 / 381.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of Templates: time 0.02769/0.4401, allocations: 8.422 MB / 389.6 MB, free: 18 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 -s cvode -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