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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 111 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.001111/0.001111, 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.397/1.397, allocations: 222.9 MB / 241.1 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 39.03 kB / 300.1 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 49.44 MB / 349.5 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004374/0.1157, allocations: 2.424 MB / 351.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.118, allocations: 0.8145 MB / 352.7 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004685/0.1185, allocations: 11.94 kB / 352.7 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005181/0.1191, allocations: 43.69 kB / 352.8 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000497/0.1196, allocations: 55.69 kB / 352.8 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1206, allocations: 180.3 kB / 353 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006004/0.1212, allocations: 371.5 kB / 353.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.1215, allocations: 87.39 kB / 353.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.1218, allocations: 155.4 kB / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.1221, allocations: 175.2 kB / 353.8 MB, free: 212 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.947e-05/0.1222, allocations: 24 kB / 353.8 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.226e-05/0.1222, allocations: 20 kB / 353.8 MB, free: 168 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.1224, allocations: 99.62 kB / 353.9 MB, free: 68 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.1226, allocations: 155.1 kB / 354.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.1229, allocations: 338.9 kB / 354.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1229, allocations: 4 kB / 354.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.123, allocations: 0 / 354.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.123, allocations: 0 / 354.4 MB, free: 15.58 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.001355/0.1243, allocations: 0.6782 MB / 355.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1244, allocations: 8.031 kB / 355.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.163e-05/0.1245, allocations: 74.72 kB / 355.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.945e-05/0.1246, allocations: 48.41 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004002/0.125, allocations: 299.1 kB / 355.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.1252, allocations: 142.3 kB / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.1253, allocations: 24.38 kB / 355.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.1266, allocations: 0.5814 MB / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.1266, allocations: 0 / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.1266, allocations: 12 kB / 356.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1267, allocations: 8 kB / 356.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1281, allocations: 0.5074 MB / 356.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.1297, allocations: 1.018 MB / 357.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.1313, allocations: 0.5021 MB / 358.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005979/0.1319, allocations: 263.4 kB / 358.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.132, allocations: 8 kB / 358.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.132, allocations: 42.5 kB / 358.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.673e-06/0.132, allocations: 0 / 358.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03835/0.1704, allocations: 5.747 MB / 364.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.1705, allocations: 153.2 kB / 364.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.1709, allocations: 254.5 kB / 364.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.737e-05/0.171, allocations: 45.7 kB / 364.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1711, allocations: 153.4 kB / 365 MB, free: 4.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.1713, allocations: 193.3 kB / 365.1 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003184/0.1717, allocations: 114.6 kB / 365.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1718, allocations: 338.8 kB / 365.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.1734, allocations: 0.6188 MB / 366.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.175, allocations: 0.8002 MB / 367 MB, free: 2.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002842/0.1779, allocations: 1.247 MB / 368.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.1779, allocations: 4 kB / 368.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1638/0.3417, allocations: 1.39 MB / 369.6 MB, free: 25.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.3418, allocations: 11.92 kB / 369.7 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3418, allocations: 5.125 kB / 369.7 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.3418, allocations: 9.969 kB / 369.7 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.3432, allocations: 208.7 kB / 369.9 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.3432, allocations: 16.73 kB / 369.9 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009502/0.3442, allocations: 99.67 kB / 370 MB, free: 25.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.161e-05/0.3443, allocations: 29.5 kB / 370 MB, free: 25.85 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.0003068/0.3446, allocations: 191.9 kB / 370.2 MB, free: 25.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/0.3449, allocations: 162.3 kB / 370.4 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.3451, allocations: 71.3 kB / 370.4 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3451, allocations: 8.594 kB / 370.4 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3451, allocations: 1.5 kB / 370.4 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.3451, allocations: 4.797 kB / 370.4 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.3497, allocations: 2.187 MB / 372.6 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/0.3497, allocations: 9.562 kB / 372.6 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/0.3505, allocations: 182.5 kB / 372.8 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-05/0.3506, allocations: 14.28 kB / 372.8 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/0.3507, allocations: 24.02 kB / 372.9 MB, free: 24.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.96e-05/0.3507, allocations: 27.61 kB / 372.9 MB, free: 24.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-05/0.3507, allocations: 23 kB / 372.9 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003057/0.3538, allocations: 1.569 MB / 374.5 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.354, allocations: 181.1 kB / 374.7 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/0.3541, allocations: 35.17 kB / 374.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.3546, allocations: 78.44 kB / 374.8 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.3548, allocations: 93.02 kB / 374.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.3549, allocations: 28.84 kB / 374.9 MB, free: 23.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.3551, allocations: 190.5 kB / 375.1 MB, free: 23.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3551, allocations: 2.625 kB / 375.1 MB, free: 23.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007895/0.3559, allocations: 124.8 kB / 375.2 MB, free: 23.71 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.003367/0.3593, allocations: 2.123 MB / 377.3 MB, free: 22.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.362, allocations: 1.114 MB / 378.4 MB, free: 21.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.362, allocations: 2.094 kB / 378.4 MB, free: 21.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009756/0.363, allocations: 340.7 kB / 378.8 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009613/0.364, allocations: 156.8 kB / 378.9 MB, free: 21.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.3761, allocations: 7.063 MB / 386 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.3764, allocations: 0.833 MB / 386.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006367/0.3771, allocations: 97.8 kB / 386.9 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.3775, allocations: 119.9 kB / 387 MB, free: 16.17 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3775, allocations: 4 kB / 387 MB, free: 16.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.3995, allocations: 10.88 MB / 397.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.3997, allocations: 219.3 kB / 398.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.435, allocations: 0 / 398.1 MB, free: 9.09 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > 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