Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",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.001941/0.001941, allocations: 107.9 kB / 17.06 MB, free: 6.016 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.002224/0.002224, allocations: 189.4 kB / 18 MB, free: 5.102 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.562/1.562, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 47.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.289, allocations: 49.45 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004306/0.2933, allocations: 2.321 MB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.295, allocations: 0.7754 MB / 403.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.2952, allocations: 4 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.2955, allocations: 43.58 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.2958, allocations: 59.56 kB / 403.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.2963, allocations: 179.5 kB / 403.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.2967, allocations: 363.7 kB / 404 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.2969, allocations: 95.36 kB / 404.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.2972, allocations: 163.4 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.2974, allocations: 171.3 kB / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.2975, allocations: 32 kB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.072e-05/0.2976, allocations: 36 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.2977, allocations: 87.78 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.2979, allocations: 147.2 kB / 404.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000443/0.2983, allocations: 325.8 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.2984, allocations: 11.86 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2984, allocations: 0 / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.2984, allocations: 0 / 405 MB, free: 4.027 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001379/0.2998, allocations: 0.6159 MB / 405.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.2998, allocations: 16.03 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.723e-05/0.2999, allocations: 66.72 kB / 405.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.781e-05/0.3, allocations: 36.75 kB / 405.7 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004428/0.3004, allocations: 268.5 kB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/0.3007, allocations: 138.2 kB / 406.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/0.3008, allocations: 28.38 kB / 406.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.302, allocations: 0.553 MB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.3021, allocations: 0 / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.3021, allocations: 12 kB / 406.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3021, allocations: 8 kB / 406.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.3036, allocations: 0.5112 MB / 407.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.3052, allocations: 1.006 MB / 408.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.307, allocations: 0.5063 MB / 408.8 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007015/0.3078, allocations: 255.6 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.782e-05/0.3078, allocations: 7.984 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.3079, allocations: 42.47 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.755e-06/0.3079, allocations: 4 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04049/0.3484, allocations: 5.722 MB / 414.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.3486, allocations: 144.9 kB / 414.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.3488, allocations: 195.1 kB / 415.1 MB, free: 9.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.319e-05/0.3489, allocations: 37.7 kB / 415.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.3491, allocations: 149.7 kB / 415.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.3493, allocations: 202.3 kB / 415.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003417/0.3496, allocations: 118.6 kB / 415.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3498, allocations: 339.2 kB / 415.9 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.3515, allocations: 0.611 MB / 416.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.3535, allocations: 0.8003 MB / 417.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003419/0.3569, allocations: 1.251 MB / 418.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.3569, allocations: 11.88 kB / 418.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004027/0.361, allocations: 1.394 MB / 420 MB, free: 4.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.361, allocations: 8 kB / 420 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.361, allocations: 8.078 kB / 420 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.513e-05/0.3611, allocations: 8.234 kB / 420 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.3625, allocations: 207.6 kB / 420.2 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/0.3625, allocations: 11.98 kB / 420.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.3635, allocations: 111.8 kB / 420.4 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/0.3636, allocations: 24 kB / 420.4 MB, free: 4.129 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.0003991/0.364, allocations: 193.6 kB / 420.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003801/0.3644, allocations: 153.4 kB / 420.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002023/0.3646, allocations: 59.3 kB / 420.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.3646, allocations: 8 kB / 420.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.3647, allocations: 4 kB / 420.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.3647, allocations: 7.984 kB / 420.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005221/0.3699, allocations: 2.16 MB / 423 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.37, allocations: 8 kB / 423 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008081/0.3708, allocations: 187.7 kB / 423.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.972e-05/0.3708, allocations: 16.47 kB / 423.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-05/0.3709, allocations: 24 kB / 423.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.159e-05/0.3709, allocations: 23.92 kB / 423.2 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/0.3709, allocations: 15.94 kB / 423.2 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.3745, allocations: 1.549 MB / 424.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.3748, allocations: 172.8 kB / 424.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.321e-05/0.3749, allocations: 24 kB / 425 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006166/0.3755, allocations: 75.91 kB / 425 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.3757, allocations: 95.86 kB / 425.1 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.575e-05/0.3758, allocations: 35.94 kB / 425.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.3759, allocations: 144.2 kB / 425.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.376, allocations: 4 kB / 425.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007083/0.3767, allocations: 120 kB / 425.4 MB, free: 14.7 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.003957/0.3806, allocations: 2.136 MB / 427.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00317/0.3838, allocations: 1.136 MB / 428.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.655e-05/0.3839, allocations: 8 kB / 428.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.385, allocations: 338.3 kB / 429 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009948/0.386, allocations: 135.8 kB / 429.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.4004, allocations: 6.775 MB / 436 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.4011, allocations: 0.809 MB / 436.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005609/0.4016, allocations: 99.3 kB / 436.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.402, allocations: 115.4 kB / 437 MB, free: 2.488 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4021, allocations: 4.406 kB / 437 MB, free: 2.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05146/0.4535, allocations: 11.23 MB / 448.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.218/9.672, allocations: 12.56 kB / 448.2 MB, free: 7.367 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches