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.0008278/0.0008277, allocations: 92.73 kB / 16.65 MB, free: 6.535 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.0009544/0.0009546, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.545/1.545, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003025, allocations: 4 kB / 301.5 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1553, allocations: 50.41 MB / 351.9 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003889/0.1593, allocations: 2.014 MB / 354 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.1616, allocations: 0.7833 MB / 354.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000355/0.162, allocations: 4 kB / 354.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004381/0.1624, allocations: 51.69 kB / 354.8 MB, free: 496 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004092/0.1629, allocations: 39.75 kB / 354.8 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008414/0.1637, allocations: 155.7 kB / 355 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006177/0.1644, allocations: 363.7 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.1647, allocations: 91.83 kB / 355.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000443/0.1652, allocations: 131.4 kB / 355.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.1655, allocations: 163.2 kB / 355.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.63e-05/0.1656, allocations: 16 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.111e-05/0.1657, allocations: 16 kB / 355.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.1659, allocations: 75.72 kB / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.1661, allocations: 153 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.1665, allocations: 307.1 kB / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1665, allocations: 0 / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1665, allocations: 0 / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.1666, allocations: 8 kB / 356.3 MB, free: 14.99 MB / 302.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.001481/0.1681, allocations: 0.5744 MB / 356.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.85e-05/0.1681, allocations: 15.97 kB / 356.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.1683, allocations: 70.72 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.1684, allocations: 44.56 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004756/0.1689, allocations: 276.2 kB / 357.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/0.1692, allocations: 146.3 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.1693, allocations: 24.38 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.1707, allocations: 0.5777 MB / 358 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.1708, allocations: 7.938 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.1708, allocations: 8 kB / 358 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1708, allocations: 8 kB / 358 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.1724, allocations: 0.5347 MB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.1744, allocations: 1.014 MB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.1762, allocations: 0.5335 MB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006801/0.1769, allocations: 271.4 kB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.312e-05/0.177, allocations: 11.94 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.177, allocations: 38.56 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.176e-06/0.177, allocations: 0 / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04246/0.2195, allocations: 6.752 MB / 367.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.2197, allocations: 156.9 kB / 367.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.22, allocations: 192.2 kB / 367.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.242e-05/0.2201, allocations: 41.7 kB / 367.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2203, allocations: 141.5 kB / 367.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/0.2205, allocations: 193.3 kB / 367.9 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.2207, allocations: 57.69 kB / 367.9 MB, free: 2.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2208, allocations: 350.8 kB / 368.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001816/0.2227, allocations: 0.65 MB / 368.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001832/0.2245, allocations: 0.8354 MB / 369.8 MB, free: 1.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3094/0.5339, allocations: 1.319 MB / 371.1 MB, free: 24.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.545e-05/0.534, allocations: 1.594 kB / 371.1 MB, free: 24.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004505/0.5385, allocations: 1.476 MB / 372.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.5386, allocations: 7.406 kB / 372.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.5386, allocations: 6.969 kB / 372.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.362e-05/0.5386, allocations: 9.156 kB / 372.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.5401, allocations: 231 kB / 372.8 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.673e-05/0.5401, allocations: 10.72 kB / 372.8 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.5412, allocations: 121.2 kB / 372.9 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-05/0.5413, allocations: 33.56 kB / 373 MB, free: 24.43 MB / 302.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.0003364/0.5417, allocations: 192.1 kB / 373.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003359/0.542, allocations: 149.3 kB / 373.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.5422, allocations: 66.61 kB / 373.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.5422, allocations: 9.547 kB / 373.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.5422, allocations: 1.344 kB / 373.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.5423, allocations: 4.172 kB / 373.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005512/0.5478, allocations: 2.296 MB / 375.7 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/0.5478, allocations: 11.31 kB / 375.7 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008377/0.5487, allocations: 203.1 kB / 375.9 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.343e-05/0.5487, allocations: 14.56 kB / 375.9 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.5488, allocations: 23.45 kB / 375.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.209e-05/0.5488, allocations: 23.94 kB / 375.9 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.568e-05/0.5488, allocations: 15.12 kB / 376 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.5522, allocations: 1.67 MB / 377.6 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.5524, allocations: 164.6 kB / 377.8 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.5525, allocations: 34.88 kB / 377.8 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/0.5531, allocations: 95.41 kB / 377.9 MB, free: 22.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.5534, allocations: 94.38 kB / 378 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.5534, allocations: 35.12 kB / 378 MB, free: 22.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001417/0.5536, allocations: 138.9 kB / 378.2 MB, free: 22.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5536, allocations: 0 / 378.2 MB, free: 22.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007677/0.5544, allocations: 122.1 kB / 378.3 MB, free: 22.2 MB / 302.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.003889/0.5583, allocations: 2.24 MB / 380.5 MB, free: 20.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003125/0.5614, allocations: 1.198 MB / 381.7 MB, free: 20.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.5614, allocations: 1.125 kB / 381.7 MB, free: 20.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.5625, allocations: 378.3 kB / 382.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.5636, allocations: 140.2 kB / 382.2 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.5767, allocations: 7.164 MB / 389.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.5771, allocations: 0.8104 MB / 390.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006214/0.5777, allocations: 94.22 kB / 390.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.5781, allocations: 120.1 kB / 390.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of SimCode: time 1.133e-06/0.5781, allocations: 0 / 390.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03287/0.611, allocations: 10.39 MB / 400.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/0.6112, allocations: 214 kB / 401 MB, free: 6.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.19, allocations: 0 / 401 MB, free: 6.48 MB / 302.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