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.001277/0.001277, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 247 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 63.89 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2773, allocations: 50.54 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003963/0.2813, allocations: 2.4 MB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.2831, allocations: 0.8611 MB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.2832, allocations: 11.94 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003035/0.2836, allocations: 51.56 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.2838, allocations: 63.48 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005862/0.2844, allocations: 199.6 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004614/0.2849, allocations: 391.5 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.2851, allocations: 107.5 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.2854, allocations: 167.5 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.2857, allocations: 183.2 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.147e-05/0.2858, allocations: 40 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.901e-05/0.2858, allocations: 32 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.286, allocations: 107.7 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.2862, allocations: 167 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.2866, allocations: 369.4 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2867, allocations: 0 / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2867, allocations: 0 / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2867, allocations: 0 / 413.9 MB, free: 12.31 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.001326/0.288, allocations: 0.6779 MB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2881, allocations: 8.031 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.846e-05/0.2881, allocations: 66.73 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.175e-05/0.2882, allocations: 48.7 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004927/0.2887, allocations: 315.3 kB / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.289, allocations: 142.3 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.289, allocations: 32.38 kB / 415.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.2903, allocations: 0.5776 MB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.2904, allocations: 3.938 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.2904, allocations: 12 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.2904, allocations: 8 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.2919, allocations: 0.5035 MB / 416.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.2936, allocations: 1.034 MB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.2954, allocations: 0.5024 MB / 417.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007052/0.2961, allocations: 259 kB / 418.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.907e-05/0.2962, allocations: 12.12 kB / 418.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.276e-05/0.2963, allocations: 46.5 kB / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.985e-06/0.2963, allocations: 0 / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04048/0.3367, allocations: 5.758 MB / 423.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001694/0.337, allocations: 153 kB / 424 MB, free: 1.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.3374, allocations: 262.5 kB / 424.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.3374, allocations: 37.7 kB / 424.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.3376, allocations: 153.7 kB / 424.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.3378, allocations: 198.4 kB / 424.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003107/0.3382, allocations: 114.6 kB / 424.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.3383, allocations: 346.8 kB / 425.1 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.3401, allocations: 0.6149 MB / 425.8 MB, free: 124 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001938/0.342, allocations: 0.7963 MB / 426.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003527/0.3456, allocations: 1.251 MB / 427.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.942e-06/0.3456, allocations: 0 / 427.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004043/0.3497, allocations: 1.402 MB / 429.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.3497, allocations: 8 kB / 429.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.3498, allocations: 4 kB / 429.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/0.3498, allocations: 12 kB / 429.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.3512, allocations: 211.6 kB / 429.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.656e-05/0.3513, allocations: 11.94 kB / 429.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.3523, allocations: 99.81 kB / 429.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.637e-05/0.3524, allocations: 35.98 kB / 429.6 MB, free: 12.13 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.0003949/0.3528, allocations: 185.6 kB / 429.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003881/0.3532, allocations: 165.6 kB / 429.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002346/0.3535, allocations: 71.61 kB / 430 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.3535, allocations: 12 kB / 430 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.3535, allocations: 3.938 kB / 430 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3535, allocations: 3.984 kB / 430 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.3588, allocations: 2.179 MB / 432.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.3589, allocations: 8 kB / 432.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008093/0.3597, allocations: 188.3 kB / 432.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.899e-05/0.3597, allocations: 20 kB / 432.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.527e-05/0.3598, allocations: 23.98 kB / 432.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.579e-05/0.3598, allocations: 19.94 kB / 432.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.407e-05/0.3598, allocations: 15.94 kB / 432.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003613/0.3635, allocations: 1.565 MB / 434 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.3638, allocations: 180.7 kB / 434.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.346e-05/0.3639, allocations: 31.97 kB / 434.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006144/0.3645, allocations: 71.92 kB / 434.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.3648, allocations: 99.72 kB / 434.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-05/0.3648, allocations: 28 kB / 434.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.365, allocations: 190 kB / 434.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.365, allocations: 0 / 434.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007057/0.3658, allocations: 127.9 kB / 434.7 MB, free: 6.602 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.003971/0.3697, allocations: 2.133 MB / 436.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003342/0.3731, allocations: 1.139 MB / 438 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.3731, allocations: 0 / 438 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.3743, allocations: 346.5 kB / 438.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.3754, allocations: 151.8 kB / 438.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/0.3912, allocations: 6.921 MB / 445.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006801/0.392, allocations: 0.8285 MB / 446.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005494/0.3926, allocations: 100.1 kB / 446.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.393, allocations: 123.4 kB / 446.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.393, allocations: 0 / 446.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04254/0.4355, allocations: 11.63 MB / 458.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.246/9.682, allocations: 3.938 kB / 458.1 MB, free: 14.68 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.1.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