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.001597/0.001598, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002052/0.002052, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 66.88 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1114, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004916/0.1164, allocations: 2.383 MB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1186, allocations: 0.8689 MB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003385/0.1189, allocations: 11.94 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003978/0.1194, allocations: 55.5 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.1198, allocations: 67.48 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007781/0.1206, allocations: 199.5 kB / 361.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005055/0.1211, allocations: 387.5 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.1213, allocations: 107.4 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003742/0.1217, allocations: 175.4 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.122, allocations: 179.2 kB / 362 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.246e-05/0.1221, allocations: 36 kB / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.504e-05/0.1222, allocations: 32 kB / 362 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1223, allocations: 103.7 kB / 362.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.1225, allocations: 167 kB / 362.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000428/0.1229, allocations: 359 kB / 362.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.1229, allocations: 3.938 kB / 362.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1229, allocations: 4 kB / 362.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.123, allocations: 0 / 362.7 MB, free: 8.891 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.001692/0.1247, allocations: 0.6665 MB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.1247, allocations: 8.031 kB / 363.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.1249, allocations: 74.73 kB / 363.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.125, allocations: 48.45 kB / 363.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005635/0.1256, allocations: 299.1 kB / 363.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.1258, allocations: 138.3 kB / 363.9 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.528e-05/0.1259, allocations: 28.38 kB / 363.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.1274, allocations: 0.5754 MB / 364.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/0.1274, allocations: 3.938 kB / 364.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.1275, allocations: 12 kB / 364.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.1275, allocations: 8 kB / 364.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/0.129, allocations: 0.5112 MB / 365 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.1307, allocations: 1.017 MB / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.1326, allocations: 0.5024 MB / 366.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.1334, allocations: 259.4 kB / 366.8 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.89e-05/0.1334, allocations: 12.14 kB / 366.8 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.1335, allocations: 38.56 kB / 366.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.837e-06/0.1335, allocations: 0 / 366.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2158/0.3493, allocations: 5.758 MB / 372.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/0.3494, allocations: 152.2 kB / 372.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.3498, allocations: 262.4 kB / 373 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.161e-05/0.3498, allocations: 37.92 kB / 373.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/0.3499, allocations: 153.4 kB / 373.2 MB, free: 20.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.3501, allocations: 192.4 kB / 373.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/0.3504, allocations: 114 kB / 373.5 MB, free: 20.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3505, allocations: 347.3 kB / 373.8 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001677/0.3522, allocations: 0.6164 MB / 374.5 MB, free: 19.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/0.354, allocations: 0.7992 MB / 375.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003143/0.3572, allocations: 1.25 MB / 376.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.3572, allocations: 1.25 kB / 376.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003813/0.361, allocations: 1.397 MB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.3611, allocations: 10.98 kB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.3611, allocations: 5 kB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.3611, allocations: 9.562 kB / 377.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.3626, allocations: 212.8 kB / 378.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/0.3626, allocations: 14.97 kB / 378.2 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3637, allocations: 97.97 kB / 378.2 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.434e-05/0.3638, allocations: 27.5 kB / 378.3 MB, free: 17.79 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.0003578/0.3642, allocations: 197.5 kB / 378.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003489/0.3645, allocations: 158.3 kB / 378.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001729/0.3647, allocations: 68.45 kB / 378.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.3647, allocations: 7.781 kB / 378.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.3647, allocations: 1.625 kB / 378.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.3648, allocations: 4.625 kB / 378.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005109/0.3699, allocations: 2.19 MB / 380.9 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.3699, allocations: 10.75 kB / 380.9 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000798/0.3707, allocations: 186.7 kB / 381.1 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-05/0.3708, allocations: 14.72 kB / 381.1 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.597e-05/0.3708, allocations: 23.92 kB / 381.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.121e-05/0.3709, allocations: 20.09 kB / 381.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.468e-05/0.3709, allocations: 20.03 kB / 381.2 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003354/0.3742, allocations: 1.558 MB / 382.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.3745, allocations: 178.5 kB / 382.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.3746, allocations: 26.36 kB / 382.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006187/0.3753, allocations: 78.72 kB / 383 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.3755, allocations: 101.8 kB / 383.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/0.3756, allocations: 29.06 kB / 383.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002012/0.3758, allocations: 189.8 kB / 383.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3758, allocations: 1.219 kB / 383.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007476/0.3765, allocations: 123.6 kB / 383.4 MB, free: 15 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.003693/0.3802, allocations: 2.142 MB / 385.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003125/0.3834, allocations: 1.153 MB / 386.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/0.3834, allocations: 2.844 kB / 386.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.3846, allocations: 343.3 kB / 387.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3857, allocations: 157.3 kB / 387.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/0.3989, allocations: 6.89 MB / 394.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.3993, allocations: 0.8351 MB / 394.9 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006177/0.3999, allocations: 98.73 kB / 395 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003537/0.4002, allocations: 121.6 kB / 395.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4002, allocations: 0 / 395.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03557/0.4358, allocations: 11.6 MB / 406.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.803/9.239, allocations: 0 / 406.8 MB, free: 13.2 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