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.001251/0.001251, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001166/0.001166, allocations: 200 kB / 18.01 MB, free: 5.055 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.204/1.204, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007802/0.0007803, allocations: 43.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2821, allocations: 49.45 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003949/0.2861, allocations: 2.372 MB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.2876, allocations: 0.8338 MB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.2878, allocations: 7.938 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.2881, allocations: 59.5 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.2883, allocations: 63.48 kB / 403.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006101/0.289, allocations: 195.1 kB / 403.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.2894, allocations: 407.4 kB / 404.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.2896, allocations: 103.5 kB / 404.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.2899, allocations: 163.4 kB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.2901, allocations: 183.2 kB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.814e-05/0.2902, allocations: 36 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.018e-05/0.2902, allocations: 32 kB / 404.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.2903, allocations: 103.7 kB / 404.7 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.2905, allocations: 171 kB / 404.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.2909, allocations: 372.4 kB / 405.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2909, allocations: 0 / 405.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2909, allocations: 0 / 405.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2909, allocations: 0 / 405.3 MB, free: 3.742 MB / 318.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.00122/0.2921, allocations: 0.6588 MB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.2922, allocations: 8.031 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.586e-05/0.2923, allocations: 78.66 kB / 406 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.002e-05/0.2924, allocations: 44.47 kB / 406.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005591/0.2929, allocations: 315 kB / 406.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.2932, allocations: 142.3 kB / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.298e-05/0.2932, allocations: 28.38 kB / 406.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.2945, allocations: 0.5658 MB / 407.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.2945, allocations: 4 kB / 407.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.2946, allocations: 12 kB / 407.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.2946, allocations: 12 kB / 407.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.296, allocations: 0.5035 MB / 407.6 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.2976, allocations: 1.029 MB / 408.7 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.2992, allocations: 0.5064 MB / 409.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006371/0.2998, allocations: 263.4 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.566e-05/0.2999, allocations: 4 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.2999, allocations: 46.48 kB / 409.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.934e-06/0.2999, allocations: 0 / 409.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.0389/0.3388, allocations: 5.754 MB / 415.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.339, allocations: 152.9 kB / 415.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.3393, allocations: 262.5 kB / 415.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.319e-05/0.3394, allocations: 37.7 kB / 415.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.706e-05/0.3395, allocations: 145.5 kB / 415.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.3397, allocations: 197.3 kB / 416 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002918/0.34, allocations: 114.6 kB / 416.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3402, allocations: 346.8 kB / 416.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/0.3418, allocations: 0.6188 MB / 417.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.3436, allocations: 0.7963 MB / 417.9 MB, free: 6.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003185/0.3468, allocations: 1.248 MB / 419.1 MB, free: 5.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3468, allocations: 0 / 419.1 MB, free: 5.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003729/0.3505, allocations: 1.401 MB / 420.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.3506, allocations: 11.94 kB / 420.5 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.3506, allocations: 4.312 kB / 420.5 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.822e-05/0.3506, allocations: 19.83 kB / 420.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.352, allocations: 203.7 kB / 420.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.102e-05/0.352, allocations: 15.92 kB / 420.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009859/0.353, allocations: 103.7 kB / 420.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.939e-05/0.3531, allocations: 35.98 kB / 420.9 MB, free: 3.586 MB / 334.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.0003209/0.3534, allocations: 185.6 kB / 421.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.3538, allocations: 161 kB / 421.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002036/0.354, allocations: 71.61 kB / 421.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.354, allocations: 8 kB / 421.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.354, allocations: 0 / 421.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.354, allocations: 3.984 kB / 421.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005281/0.3593, allocations: 2.184 MB / 423.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.3593, allocations: 11.94 kB / 423.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007481/0.3601, allocations: 180 kB / 423.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.666e-05/0.3601, allocations: 16 kB / 423.7 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.042e-05/0.3602, allocations: 20 kB / 423.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.797e-05/0.3602, allocations: 27.86 kB / 423.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.95e-05/0.3602, allocations: 19.88 kB / 423.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.3637, allocations: 1.561 MB / 425.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.364, allocations: 172.6 kB / 425.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/0.3641, allocations: 27.98 kB / 425.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.3647, allocations: 79.98 kB / 425.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.3649, allocations: 95.66 kB / 425.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.3649, allocations: 28 kB / 425.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001902/0.3651, allocations: 186 kB / 425.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3651, allocations: 0 / 425.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006335/0.3658, allocations: 127.9 kB / 426 MB, free: 14.07 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.00356/0.3694, allocations: 2.14 MB / 428.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002827/0.3722, allocations: 1.14 MB / 429.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.3722, allocations: 0 / 429.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3732, allocations: 342.2 kB / 429.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008664/0.3741, allocations: 146.1 kB / 429.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.3876, allocations: 6.917 MB / 436.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.3882, allocations: 0.8324 MB / 437.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005466/0.3888, allocations: 104.1 kB / 437.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/0.3892, allocations: 123.4 kB / 437.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3892, allocations: 0 / 437.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.439/4.828, allocations: 11.95 MB / 449.7 MB, free: 5.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.67/25.5, allocations: 8.125 kB / 449.7 MB, free: 5.852 MB / 366.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