Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 124.4 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 43.94 kB / 373 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1402, allocations: 53.34 MB / 426.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.005463/0.1457, allocations: 2.341 MB / 428.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.1479, allocations: 0.8066 MB / 429.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003557/0.1482, allocations: 11.88 kB / 429.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.1486, allocations: 51.62 kB / 429.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.1491, allocations: 59.5 kB / 429.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007703/0.1498, allocations: 170.4 kB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007062/0.1505, allocations: 371.6 kB / 430.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002456/0.1508, allocations: 71.39 kB / 430.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.1513, allocations: 179.4 kB / 430.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.1516, allocations: 179.2 kB / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.318e-05/0.1517, allocations: 36 kB / 430.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.612e-05/0.1518, allocations: 32 kB / 430.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1519, allocations: 95.72 kB / 430.7 MB, free: 432 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.1521, allocations: 143.3 kB / 430.8 MB, free: 288 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2921/0.4442, allocations: 321.9 kB / 431.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.317e-05/0.4442, allocations: 2.75 kB / 431.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.4442, allocations: 0 / 431.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.732e-05/0.4443, allocations: 0 / 431.1 MB, free: 8.266 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001836/0.4461, allocations: 0.618 MB / 431.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.4462, allocations: 10.55 kB / 431.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.4463, allocations: 67.08 kB / 431.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.4464, allocations: 40.41 kB / 431.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.4469, allocations: 267.1 kB / 432.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002849/0.4472, allocations: 138.9 kB / 432.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-05/0.4473, allocations: 31.39 kB / 432.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.4488, allocations: 0.547 MB / 432.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.4489, allocations: 3.062 kB / 432.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.312e-05/0.4489, allocations: 16.03 kB / 432.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.4489, allocations: 6.812 kB / 432.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.4505, allocations: 0.5106 MB / 433.4 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.4524, allocations: 1.002 MB / 434.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.4541, allocations: 484.6 kB / 434.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00068/0.4548, allocations: 234.2 kB / 435.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.535e-05/0.4549, allocations: 5.078 kB / 435.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.4549, allocations: 45.25 kB / 435.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.965e-06/0.4549, allocations: 0 / 435.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04099/0.4959, allocations: 5.725 MB / 440.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/0.4961, allocations: 148.6 kB / 441 MB, free: 6.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.4963, allocations: 210.1 kB / 441.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.33e-05/0.4964, allocations: 36.23 kB / 441.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.206e-05/0.4964, allocations: 145.1 kB / 441.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.4966, allocations: 199.5 kB / 441.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003419/0.497, allocations: 105.4 kB / 441.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.497, allocations: 344.8 kB / 442 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001673/0.4987, allocations: 0.6169 MB / 442.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/0.5004, allocations: 0.802 MB / 443.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003005/0.5035, allocations: 1.247 MB / 444.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.5035, allocations: 2.094 kB / 444.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004284/0.5077, allocations: 1.402 MB / 446.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/0.5078, allocations: 6.844 kB / 446.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.5078, allocations: 6.844 kB / 446.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.387e-05/0.5079, allocations: 9.938 kB / 446.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.5094, allocations: 210.9 kB / 446.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.519e-05/0.5094, allocations: 10.73 kB / 446.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.5105, allocations: 103.2 kB / 446.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-05/0.5106, allocations: 29.03 kB / 446.5 MB, free: 3.375 MB / 350.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.0004155/0.511, allocations: 186.3 kB / 446.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003546/0.5113, allocations: 160 kB / 446.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001847/0.5115, allocations: 63.97 kB / 446.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.5115, allocations: 8.5 kB / 446.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.5115, allocations: 3.234 kB / 446.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.5116, allocations: 4.797 kB / 446.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005159/0.5167, allocations: 2.171 MB / 449 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.946e-05/0.5167, allocations: 11 kB / 449.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008107/0.5175, allocations: 185.1 kB / 449.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.751e-05/0.5176, allocations: 13.72 kB / 449.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.5176, allocations: 28.72 kB / 449.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-05/0.5176, allocations: 18.31 kB / 449.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/0.5177, allocations: 15.69 kB / 449.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003258/0.5209, allocations: 1.553 MB / 450.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/0.5211, allocations: 167.5 kB / 451 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.204e-05/0.5212, allocations: 27.95 kB / 451.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006478/0.5219, allocations: 75.67 kB / 451.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/0.5221, allocations: 98.69 kB / 451.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-05/0.5221, allocations: 30.03 kB / 451.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001334/0.5223, allocations: 141 kB / 451.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5223, allocations: 0 / 451.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007701/0.523, allocations: 123.2 kB / 451.5 MB, free: 0.543 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.003749/0.5268, allocations: 2.121 MB / 453.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003305/0.5301, allocations: 1.029 MB / 454.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/0.5301, allocations: 2.938 kB / 454.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.5313, allocations: 341.2 kB / 455 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.5324, allocations: 135.8 kB / 455.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.5477, allocations: 6.77 MB / 461.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006038/0.5483, allocations: 0.8143 MB / 462.7 MB, free: 8.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005602/0.5488, allocations: 92.62 kB / 462.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004406/0.5493, allocations: 117.6 kB / 462.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5493, allocations: 0 / 462.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04524/0.5945, allocations: 11.27 MB / 474.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.155/9.749, allocations: 14.84 kB / 474.2 MB, free: 15.25 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.432860662927851]