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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 106.8 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002048, allocations: 58.69 kB / 306.3 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.104, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003496/0.1076, allocations: 2.436 MB / 359.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.1092, allocations: 0.8535 MB / 360.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.1094, allocations: 7.938 kB / 360.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.1098, allocations: 47.7 kB / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.11, allocations: 51.67 kB / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006065/0.1106, allocations: 171.8 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003796/0.111, allocations: 383.4 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1112, allocations: 103.3 kB / 360.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/0.1115, allocations: 159.3 kB / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.1117, allocations: 171.3 kB / 361.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.95e-05/0.1118, allocations: 23.98 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.319e-05/0.1119, allocations: 24 kB / 361.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.112, allocations: 91.66 kB / 361.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.1121, allocations: 155.1 kB / 361.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.1124, allocations: 347 kB / 361.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1124, allocations: 0 / 361.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1124, allocations: 0 / 361.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.1124, allocations: 4 kB / 361.9 MB, free: 9.391 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.001203/0.1137, allocations: 0.6704 MB / 362.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1137, allocations: 8.031 kB / 362.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.278e-05/0.1138, allocations: 74.72 kB / 362.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.93e-05/0.1139, allocations: 44.47 kB / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.1142, allocations: 299.1 kB / 363 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.1144, allocations: 134.3 kB / 363.1 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.555e-05/0.1145, allocations: 28.38 kB / 363.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.1156, allocations: 0.5793 MB / 363.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1156, allocations: 0 / 363.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.555e-05/0.1156, allocations: 12 kB / 363.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1156, allocations: 4 kB / 363.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.1169, allocations: 0.5113 MB / 364.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1184, allocations: 1.025 MB / 365.2 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.1198, allocations: 0.4985 MB / 365.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000551/0.1204, allocations: 263.3 kB / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.695e-05/0.1204, allocations: 8 kB / 366 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.1205, allocations: 42.55 kB / 366 MB, free: 4.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.744e-06/0.1205, allocations: 0 / 366 MB, free: 4.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1834/0.3039, allocations: 5.766 MB / 371.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.304, allocations: 146.4 kB / 372 MB, free: 20.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.3044, allocations: 262.6 kB / 372.2 MB, free: 20.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.3045, allocations: 40.77 kB / 372.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.236e-05/0.3046, allocations: 145.8 kB / 372.4 MB, free: 20.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.3048, allocations: 195.1 kB / 372.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003138/0.3051, allocations: 119.2 kB / 372.7 MB, free: 20.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.794e-05/0.3052, allocations: 346.2 kB / 373 MB, free: 19.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.3068, allocations: 0.6144 MB / 373.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.3084, allocations: 0.7943 MB / 374.4 MB, free: 19.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/0.3111, allocations: 1.253 MB / 375.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.3111, allocations: 1.125 kB / 375.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003223/0.3144, allocations: 1.401 MB / 377.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.3144, allocations: 7.5 kB / 377.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.3144, allocations: 5.531 kB / 377.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.3145, allocations: 16 kB / 377.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.3157, allocations: 204 kB / 377.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.223e-05/0.3158, allocations: 14.86 kB / 377.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009099/0.3167, allocations: 102.3 kB / 377.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-05/0.3168, allocations: 30.48 kB / 377.5 MB, free: 18.08 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.0002961/0.3171, allocations: 197 kB / 377.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.3174, allocations: 159.9 kB / 377.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.3176, allocations: 68.19 kB / 377.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.3176, allocations: 8.531 kB / 377.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/0.3176, allocations: 1.094 kB / 377.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.3176, allocations: 4.641 kB / 377.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004629/0.3222, allocations: 2.192 MB / 380.1 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.3223, allocations: 13.94 kB / 380.1 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006902/0.323, allocations: 178.9 kB / 380.3 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.662e-05/0.323, allocations: 13.75 kB / 380.3 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.376e-05/0.3231, allocations: 23.88 kB / 380.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.587e-05/0.3231, allocations: 24.55 kB / 380.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/0.3231, allocations: 19.64 kB / 380.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.3259, allocations: 1.561 MB / 381.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.3261, allocations: 178.2 kB / 382.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.159e-05/0.3262, allocations: 26.34 kB / 382.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/0.3268, allocations: 81.91 kB / 382.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.327, allocations: 95.27 kB / 382.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/0.3271, allocations: 33.56 kB / 382.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.3272, allocations: 191.1 kB / 382.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3272, allocations: 0 / 382.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006527/0.3279, allocations: 124 kB / 382.6 MB, free: 15.29 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.002956/0.3309, allocations: 2.126 MB / 384.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.3333, allocations: 1.117 MB / 385.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3333, allocations: 2.781 kB / 385.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000894/0.3342, allocations: 339.4 kB / 386.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008686/0.3351, allocations: 160.3 kB / 386.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.3463, allocations: 7.066 MB / 393.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3466, allocations: 0.8311 MB / 394.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000603/0.3472, allocations: 100.4 kB / 394.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003657/0.3476, allocations: 121.2 kB / 394.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3476, allocations: 0 / 394.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.3693, allocations: 10.87 MB / 405.4 MB, free: 14.42 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.3695, allocations: 216.1 kB / 405.6 MB, free: 14.17 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.359, allocations: 2.656 kB / 405.6 MB, free: 14.17 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > 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