Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.002212/0.002212, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.003358/0.003358, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.234/3.234, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 59.89 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9267/0.9288, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.01422/0.9431, allocations: 2.348 MB / 402.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003225/0.9465, allocations: 0.7949 MB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005385/0.9471, allocations: 7.938 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006261/0.9478, allocations: 55.56 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006921/0.9486, allocations: 59.55 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.9501, allocations: 182.3 kB / 403.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005789/0.9559, allocations: 387.5 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007839/0.9568, allocations: 99.83 kB / 404.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.9579, allocations: 151.5 kB / 404.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007675/0.9587, allocations: 179.2 kB / 404.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002418/0.959, allocations: 36 kB / 404.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002347/0.9593, allocations: 39.94 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.9596, allocations: 95.77 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004763/0.9601, allocations: 147.2 kB / 404.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001096/0.9612, allocations: 328.6 kB / 405.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-05/0.9613, allocations: 3.938 kB / 405.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.11e-06/0.9613, allocations: 0 / 405.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.164e-05/0.9613, allocations: 0 / 405.1 MB, free: 3.938 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003544/0.9649, allocations: 0.6239 MB / 405.7 MB, free: 3.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001038/0.965, allocations: 12.03 kB / 405.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002619/0.9653, allocations: 70.72 kB / 405.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.9656, allocations: 36.56 kB / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.9667, allocations: 284.3 kB / 406.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003943/0.9671, allocations: 138.3 kB / 406.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.9673, allocations: 28.38 kB / 406.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.9696, allocations: 0.5697 MB / 406.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.188e-05/0.9696, allocations: 0 / 406.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.9697, allocations: 16 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.9698, allocations: 8 kB / 406.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006817/0.9766, allocations: 0.5074 MB / 407.4 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003655/0.9803, allocations: 1.006 MB / 408.4 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003347/0.9838, allocations: 0.5041 MB / 408.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.9852, allocations: 267.4 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.9853, allocations: 7.938 kB / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.22e-05/0.9854, allocations: 38.56 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 8.666e-06/0.9855, allocations: 0 / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.08614/1.072, allocations: 5.723 MB / 414.9 MB, free: 9.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002408/1.072, allocations: 153 kB / 415.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000476/1.072, allocations: 200.2 kB / 415.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/1.073, allocations: 37.7 kB / 415.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/1.073, allocations: 141.5 kB / 415.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004402/1.073, allocations: 189.3 kB / 415.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006202/1.074, allocations: 110.7 kB / 415.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002944/1.074, allocations: 346.8 kB / 416.1 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/1.077, allocations: 0.611 MB / 416.7 MB, free: 7.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003051/1.08, allocations: 0.8042 MB / 417.5 MB, free: 7.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/1.086, allocations: 1.247 MB / 418.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-05/1.086, allocations: 4 kB / 418.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006831/1.093, allocations: 1.394 MB / 420.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/1.093, allocations: 8.031 kB / 420.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/1.093, allocations: 11.94 kB / 420.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.352e-05/1.093, allocations: 8 kB / 420.2 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002645/1.096, allocations: 207.6 kB / 420.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.396e-05/1.096, allocations: 15.98 kB / 420.4 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/1.098, allocations: 107.7 kB / 420.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/1.098, allocations: 27.98 kB / 420.5 MB, free: 3.996 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.0006256/1.099, allocations: 181.6 kB / 420.7 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007071/1.1, allocations: 161.1 kB / 420.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002738/1.1, allocations: 59.3 kB / 420.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/1.1, allocations: 8 kB / 420.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/1.1, allocations: 4 kB / 420.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/1.1, allocations: 3.984 kB / 420.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009346/1.109, allocations: 2.176 MB / 423.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.259e-05/1.109, allocations: 12 kB / 423.1 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/1.111, allocations: 179.7 kB / 423.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.892e-05/1.111, allocations: 12 kB / 423.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/1.111, allocations: 24 kB / 423.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.36e-05/1.111, allocations: 24.2 kB / 423.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.359e-05/1.111, allocations: 15.94 kB / 423.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006432/1.118, allocations: 1.553 MB / 424.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005874/1.118, allocations: 160.6 kB / 425.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/1.118, allocations: 32.05 kB / 425.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/1.12, allocations: 75.92 kB / 425.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003751/1.12, allocations: 95.66 kB / 425.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/1.12, allocations: 28 kB / 425.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002559/1.121, allocations: 140.1 kB / 425.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.132e-06/1.121, allocations: 4 kB / 425.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001357/1.122, allocations: 119.9 kB / 425.5 MB, free: 14.58 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.00694/1.129, allocations: 2.14 MB / 427.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006132/1.135, allocations: 1.136 MB / 428.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.833e-05/1.135, allocations: 4.062 kB / 428.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002186/1.137, allocations: 341.8 kB / 429.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/1.139, allocations: 137.2 kB / 429.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02719/1.167, allocations: 6.776 MB / 436.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/1.168, allocations: 0.8168 MB / 436.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001153/1.169, allocations: 99.31 kB / 437 MB, free: 2.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007523/1.17, allocations: 111.4 kB / 437.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of SimCode: time 1.753e-06/1.17, allocations: 0 / 437.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1655/1.335, allocations: 11.61 MB / 448.7 MB, free: 6.859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.09/20.43, allocations: 12.31 kB / 448.7 MB, free: 6.852 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches