Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001924/0.001924, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 51.92 kB / 365.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1393, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004173/0.1435, allocations: 2.147 MB / 419.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.1451, allocations: 0.6626 MB / 420.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1453, allocations: 4 kB / 420.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004051/0.1457, allocations: 43.64 kB / 420.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1459, allocations: 47.62 kB / 420.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.1464, allocations: 127.8 kB / 420.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004659/0.1468, allocations: 339.2 kB / 421.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.1471, allocations: 56.38 kB / 421.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.1474, allocations: 143.5 kB / 421.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.1476, allocations: 155.4 kB / 421.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.895e-05/0.1477, allocations: 32 kB / 421.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.933e-05/0.1478, allocations: 28 kB / 421.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.1479, allocations: 87.73 kB / 421.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.1481, allocations: 119.4 kB / 421.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005084/0.1486, allocations: 290.8 kB / 422 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.1486, allocations: 0 / 422 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1486, allocations: 4 kB / 422 MB, free: 8.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1486, allocations: 0 / 422 MB, free: 8.379 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001445/0.1501, allocations: 0.5842 MB / 422.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001199/0.1502, allocations: 12.03 kB / 422.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.316e-05/0.1503, allocations: 58.73 kB / 422.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.1504, allocations: 40.75 kB / 422.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005777/0.151, allocations: 252.5 kB / 423 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.1512, allocations: 141.9 kB / 423.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/0.1513, allocations: 24 kB / 423.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008996/0.1522, allocations: 363.6 kB / 423.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.1522, allocations: 4 kB / 423.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1522, allocations: 8 kB / 423.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.1522, allocations: 8 kB / 423.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.1536, allocations: 0.4939 MB / 424 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.1556, allocations: 0.9919 MB / 425 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.1569, allocations: 323.8 kB / 425.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005338/0.1574, allocations: 161.2 kB / 425.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.1575, allocations: 8.234 kB / 425.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.1575, allocations: 34.8 kB / 425.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.444e-06/0.1575, allocations: 0 / 425.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.0275/0.185, allocations: 5.807 MB / 431.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.1851, allocations: 55.84 kB / 431.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004447/0.1855, allocations: 210.5 kB / 431.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/0.1856, allocations: 33.7 kB / 431.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.1858, allocations: 153 kB / 431.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/0.186, allocations: 186.4 kB / 431.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.1863, allocations: 94.25 kB / 432 MB, free: 14.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.1865, allocations: 334.8 kB / 432.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.1878, allocations: 468.8 kB / 432.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.1892, allocations: 0.5177 MB / 433.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002336/0.1916, allocations: 0.8071 MB / 434.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1916, allocations: 0 / 434.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002866/0.1944, allocations: 0.9907 MB / 435.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.1945, allocations: 7.938 kB / 435.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.1945, allocations: 7.938 kB / 435.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.1945, allocations: 0 / 435.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009772/0.1955, allocations: 163.8 kB / 435.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.1955, allocations: 4 kB / 435.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007174/0.1962, allocations: 91.91 kB / 435.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.448e-05/0.1963, allocations: 16 kB / 435.4 MB, free: 10.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.000335/0.1966, allocations: 158.4 kB / 435.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.1967, allocations: 31.75 kB / 435.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.1969, allocations: 47.31 kB / 435.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.1969, allocations: 8 kB / 435.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.1969, allocations: 3.938 kB / 435.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.1969, allocations: 7.984 kB / 435.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004634/0.2015, allocations: 1.87 MB / 437.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.2015, allocations: 8 kB / 437.5 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006855/0.2022, allocations: 151.7 kB / 437.7 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.221e-05/0.2022, allocations: 12.41 kB / 437.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.2023, allocations: 24 kB / 437.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.269e-05/0.2023, allocations: 19.92 kB / 437.7 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/0.2023, allocations: 11.94 kB / 437.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003024/0.2054, allocations: 1.225 MB / 439 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.2056, allocations: 148.8 kB / 439.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.418e-05/0.2057, allocations: 23.98 kB / 439.1 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005193/0.2062, allocations: 67.92 kB / 439.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.2065, allocations: 83.73 kB / 439.3 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-05/0.2065, allocations: 20 kB / 439.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.2067, allocations: 148.3 kB / 439.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2067, allocations: 0 / 439.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005535/0.2073, allocations: 100 kB / 439.5 MB, free: 6.125 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003737/0.211, allocations: 1.791 MB / 441.3 MB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002531/0.2135, allocations: 0.7789 MB / 442.1 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/0.2136, allocations: 0 / 442.1 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.2146, allocations: 325.8 kB / 442.4 MB, free: 3.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.2157, allocations: 61.81 kB / 442.5 MB, free: 3.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2252/0.4408, allocations: 5.238 MB / 447.7 MB, free: 30.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.4411, allocations: 0.782 MB / 448.5 MB, free: 29.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003983/0.4415, allocations: 82.11 kB / 448.6 MB, free: 29.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/0.4417, allocations: 91.16 kB / 448.7 MB, free: 29.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4417, allocations: 3.625 kB / 448.7 MB, free: 29.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03826/0.48, allocations: 8.396 MB / 457.1 MB, free: 28.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.854/9.334, allocations: 12.8 kB / 457.1 MB, free: 28.64 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.00160325691104]