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.001723/0.001723, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002505/0.002505, allocations: 204.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.631/1.631, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3345, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004205/0.3387, allocations: 2.393 MB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.3406, allocations: 0.8572 MB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003165/0.341, allocations: 11.94 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003351/0.3414, allocations: 55.5 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.3417, allocations: 67.48 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006794/0.3424, allocations: 199.1 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005705/0.343, allocations: 395.5 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.3432, allocations: 103.5 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.3436, allocations: 179.4 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.3439, allocations: 175.2 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.166e-05/0.344, allocations: 32 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.722e-05/0.344, allocations: 36 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.3442, allocations: 111.7 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.3443, allocations: 163 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004128/0.3448, allocations: 368.3 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3448, allocations: 0 / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3448, allocations: 0 / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3448, allocations: 0 / 413.8 MB, free: 12.42 MB / 334.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.001364/0.3462, allocations: 0.6742 MB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3462, allocations: 12.03 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.919e-05/0.3463, allocations: 70.72 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.688e-05/0.3464, allocations: 44.56 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/0.3469, allocations: 311 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002152/0.3472, allocations: 142.3 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.919e-05/0.3473, allocations: 28.38 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.3485, allocations: 0.5659 MB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3486, allocations: 12 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.3486, allocations: 8 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.3486, allocations: 8 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.3501, allocations: 0.5073 MB / 416.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.352, allocations: 1.037 MB / 417.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.3537, allocations: 0.4985 MB / 417.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006592/0.3543, allocations: 262.8 kB / 418 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.58e-05/0.3544, allocations: 12.08 kB / 418 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.3545, allocations: 38.56 kB / 418 MB, free: 7.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.144e-06/0.3545, allocations: 4 kB / 418 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03983/0.3943, allocations: 5.759 MB / 423.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.3945, allocations: 145 kB / 424 MB, free: 1.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000428/0.3949, allocations: 258.5 kB / 424.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.3951, allocations: 37.7 kB / 424.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.3952, allocations: 145.5 kB / 424.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002751/0.3955, allocations: 193.3 kB / 424.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000367/0.3959, allocations: 118.6 kB / 424.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.396, allocations: 346.8 kB / 425 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/0.3978, allocations: 0.6149 MB / 425.6 MB, free: 268 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/0.3998, allocations: 0.8002 MB / 426.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003241/0.403, allocations: 1.247 MB / 427.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.712e-05/0.4031, allocations: 4 kB / 427.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003793/0.4069, allocations: 1.402 MB / 429.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.4069, allocations: 10.97 kB / 429.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.4069, allocations: 8 kB / 429.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.542e-05/0.407, allocations: 8 kB / 429.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.4084, allocations: 207.6 kB / 429.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.4084, allocations: 11.98 kB / 429.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.4094, allocations: 107.8 kB / 429.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.103e-05/0.4095, allocations: 24 kB / 429.5 MB, free: 12.28 MB / 350.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.0003494/0.4099, allocations: 197.5 kB / 429.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.4102, allocations: 165.4 kB / 429.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.4104, allocations: 67.61 kB / 429.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4105, allocations: 8 kB / 429.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4105, allocations: 0 / 429.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.036e-06/0.4105, allocations: 7.984 kB / 429.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00526/0.4158, allocations: 2.183 MB / 432.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.319e-05/0.4158, allocations: 8 kB / 432.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008268/0.4167, allocations: 183.7 kB / 432.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.888e-05/0.4167, allocations: 16 kB / 432.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.166e-05/0.4168, allocations: 24.38 kB / 432.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-05/0.4168, allocations: 23.92 kB / 432.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.888e-05/0.4168, allocations: 19.94 kB / 432.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003511/0.4203, allocations: 1.564 MB / 433.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.4206, allocations: 176.6 kB / 434.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.477e-05/0.4207, allocations: 31.98 kB / 434.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006205/0.4213, allocations: 75.92 kB / 434.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.4216, allocations: 95.66 kB / 434.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.143e-05/0.4216, allocations: 32 kB / 434.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.4218, allocations: 182 kB / 434.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4219, allocations: 4 kB / 434.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008208/0.4227, allocations: 127.9 kB / 434.6 MB, free: 6.742 MB / 350.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.0048/0.4275, allocations: 2.132 MB / 436.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00492/0.4325, allocations: 1.136 MB / 437.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.002e-05/0.4326, allocations: 192 / 437.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001852/0.4344, allocations: 346 kB / 438.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.4363, allocations: 151.2 kB / 438.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01781/0.4541, allocations: 6.898 MB / 445.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005987/0.4548, allocations: 0.8285 MB / 446.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005609/0.4553, allocations: 100.1 kB / 446.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.4558, allocations: 123.4 kB / 446.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4558, allocations: 0 / 446.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03851/0.4943, allocations: 11.95 MB / 458.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.776/9.271, allocations: 25.59 kB / 458.3 MB, free: 14.51 MB / 382.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