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.001427/0.001427, allocations: 114.1 kB / 17.07 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.001515/0.001515, allocations: 189.4 kB / 18 MB, free: 5.098 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.486/1.486, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 51.91 kB / 350.8 MB, free: 3.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3552, allocations: 49.44 MB / 400.2 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004656/0.3599, allocations: 2.38 MB / 402.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.3617, allocations: 0.8221 MB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.3619, allocations: 11.94 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.3623, allocations: 55.52 kB / 403.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.3626, allocations: 67.48 kB / 403.6 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.3632, allocations: 195.6 kB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004793/0.3637, allocations: 399.5 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.3639, allocations: 99.48 kB / 404.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.3642, allocations: 163.4 kB / 404.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.3645, allocations: 183.2 kB / 404.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.569e-05/0.3646, allocations: 32 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.3646, allocations: 36 kB / 404.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.3648, allocations: 111.7 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.365, allocations: 163 kB / 404.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.3655, allocations: 373.3 kB / 405.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3655, allocations: 0 / 405.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3655, allocations: 0 / 405.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.3656, allocations: 0 / 405.3 MB, free: 3.801 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.001398/0.367, allocations: 0.6817 MB / 406 MB, free: 3.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.367, allocations: 15.89 kB / 406 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.439e-05/0.3671, allocations: 70.72 kB / 406 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.611e-05/0.3672, allocations: 48.64 kB / 406.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.3677, allocations: 323.2 kB / 406.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.3679, allocations: 130.3 kB / 406.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.115e-05/0.368, allocations: 32.38 kB / 406.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.3694, allocations: 0.5659 MB / 407.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.3694, allocations: 7.953 kB / 407.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.3695, allocations: 12 kB / 407.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3695, allocations: 4 kB / 407.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.371, allocations: 0.5074 MB / 407.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.3728, allocations: 1.022 MB / 408.7 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/0.3746, allocations: 0.5024 MB / 409.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006984/0.3753, allocations: 271.3 kB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.591e-05/0.3753, allocations: 8 kB / 409.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.3754, allocations: 38.56 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.264e-06/0.3754, allocations: 4 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04088/0.4163, allocations: 5.777 MB / 415.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.4165, allocations: 141 kB / 415.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.4169, allocations: 266.5 kB / 415.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-05/0.4169, allocations: 37.7 kB / 415.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.4171, allocations: 149.7 kB / 415.9 MB, free: 8.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.4173, allocations: 202.4 kB / 416.1 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.4177, allocations: 114.6 kB / 416.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.4179, allocations: 350.8 kB / 416.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.4197, allocations: 0.6148 MB / 417.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.4216, allocations: 0.8003 MB / 417.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003342/0.425, allocations: 1.248 MB / 419.2 MB, free: 5.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.425, allocations: 4 kB / 419.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00395/0.4289, allocations: 1.406 MB / 420.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.429, allocations: 4 kB / 420.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.429, allocations: 8.375 kB / 420.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.287e-05/0.429, allocations: 8 kB / 420.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.4305, allocations: 211.6 kB / 420.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/0.4305, allocations: 12 kB / 420.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.4315, allocations: 107.7 kB / 420.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.4316, allocations: 28 kB / 420.9 MB, free: 3.602 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.000418/0.432, allocations: 189.6 kB / 421.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003676/0.4324, allocations: 161.3 kB / 421.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.4326, allocations: 67.61 kB / 421.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.4326, allocations: 8 kB / 421.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4327, allocations: 0 / 421.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.4327, allocations: 11.98 kB / 421.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005155/0.4378, allocations: 2.183 MB / 423.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.4379, allocations: 8 kB / 423.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007962/0.4387, allocations: 191.7 kB / 423.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.791e-05/0.4387, allocations: 12 kB / 423.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.378e-05/0.4388, allocations: 24 kB / 423.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.498e-05/0.4388, allocations: 20.28 kB / 423.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/0.4388, allocations: 15.94 kB / 423.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003523/0.4423, allocations: 1.564 MB / 425.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003133/0.4427, allocations: 184.7 kB / 425.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.787e-05/0.4428, allocations: 24.06 kB / 425.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/0.4434, allocations: 79.91 kB / 425.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.4436, allocations: 91.67 kB / 425.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-05/0.4437, allocations: 32 kB / 425.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002136/0.4439, allocations: 189.9 kB / 426 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4439, allocations: 0 / 426 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007018/0.4446, allocations: 131.9 kB / 426.1 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.003993/0.4486, allocations: 2.14 MB / 428.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003258/0.4519, allocations: 1.136 MB / 429.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/0.452, allocations: 4 kB / 429.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.4531, allocations: 337.9 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.000995/0.4541, allocations: 155 kB / 429.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01465/0.4688, allocations: 6.917 MB / 436.8 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.4694, allocations: 0.8324 MB / 437.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005562/0.4699, allocations: 100.1 kB / 437.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004207/0.4704, allocations: 119.4 kB / 437.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of SimCode: time 4.208e-06/0.4704, allocations: 0 / 437.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.5169, allocations: 11.63 MB / 449.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.161/9.678, allocations: 8.625 kB / 449.5 MB, free: 6.164 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