Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001273/0.001273, 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.001367/0.001367, 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.469/1.469, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002338/0.002338, allocations: 51.91 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1286, allocations: 53.32 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004958/0.1336, allocations: 2.378 MB / 428.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.1356, allocations: 0.8455 MB / 429.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.1359, allocations: 11.94 kB / 429.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003717/0.1363, allocations: 55.56 kB / 429.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003352/0.1366, allocations: 59.44 kB / 429.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000664/0.1373, allocations: 183.5 kB / 429.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005783/0.1378, allocations: 375.6 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.1381, allocations: 83.83 kB / 430.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000409/0.1385, allocations: 167.4 kB / 430.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.1388, allocations: 183.3 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-05/0.1389, allocations: 39.94 kB / 430.6 MB, free: 444 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.213e-05/0.1389, allocations: 32 kB / 430.7 MB, free: 412 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.139, allocations: 91.73 kB / 430.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.1392, allocations: 151.2 kB / 430.9 MB, free: 168 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2506/0.3898, allocations: 340.1 kB / 431.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.3898, allocations: 0 / 431.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3898, allocations: 0 / 431.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.3898, allocations: 3.062 kB / 431.2 MB, free: 8.348 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001266/0.3911, allocations: 0.6199 MB / 431.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3911, allocations: 10.27 kB / 431.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.3912, allocations: 67.02 kB / 431.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.217e-05/0.3913, allocations: 47.08 kB / 432 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004057/0.3917, allocations: 273.9 kB / 432.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.3919, allocations: 136.3 kB / 432.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.99e-05/0.3919, allocations: 30.09 kB / 432.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.3932, allocations: 0.5713 MB / 433 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3932, allocations: 1.031 kB / 433 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.591e-05/0.3932, allocations: 10 kB / 433 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3932, allocations: 6.562 kB / 433 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.3945, allocations: 0.5137 MB / 433.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.3959, allocations: 1.011 MB / 434.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.3975, allocations: 482.2 kB / 435 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006504/0.3982, allocations: 235.5 kB / 435.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.858e-05/0.3982, allocations: 9.172 kB / 435.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3982, allocations: 40.86 kB / 435.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.284e-06/0.3982, allocations: 0 / 435.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04013/0.4384, allocations: 5.735 MB / 441 MB, free: 6.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.612e-05/0.4385, allocations: 147.1 kB / 441.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.4387, allocations: 198.6 kB / 441.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.435e-05/0.4388, allocations: 37.7 kB / 441.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.077e-05/0.4388, allocations: 145.9 kB / 441.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.439, allocations: 203.6 kB / 441.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003001/0.4393, allocations: 113 kB / 441.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.791e-05/0.4394, allocations: 345.8 kB / 442.2 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.441, allocations: 0.6175 MB / 442.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.4428, allocations: 0.7948 MB / 443.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.4458, allocations: 1.251 MB / 444.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.4458, allocations: 2.219 kB / 444.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003608/0.4495, allocations: 1.394 MB / 446.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.4495, allocations: 8.812 kB / 446.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.4495, allocations: 5.781 kB / 446.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.318e-05/0.4495, allocations: 11.16 kB / 446.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.451, allocations: 212.6 kB / 446.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.432e-05/0.451, allocations: 18.83 kB / 446.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009796/0.452, allocations: 103.5 kB / 446.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.318e-05/0.452, allocations: 29.86 kB / 446.6 MB, free: 3.359 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.0003084/0.4524, allocations: 177.8 kB / 446.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/0.4527, allocations: 157.6 kB / 446.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001817/0.4529, allocations: 68.06 kB / 447 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.4529, allocations: 7.5 kB / 447 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.4529, allocations: 1.094 kB / 447 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.4529, allocations: 8.266 kB / 447 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004595/0.4575, allocations: 2.165 MB / 449.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.4575, allocations: 14.44 kB / 449.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008204/0.4583, allocations: 178.9 kB / 449.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.912e-05/0.4584, allocations: 17.72 kB / 449.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.554e-05/0.4584, allocations: 28.53 kB / 449.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.901e-05/0.4584, allocations: 22.56 kB / 449.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/0.4584, allocations: 14.09 kB / 449.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003/0.4614, allocations: 1.567 MB / 451 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.4616, allocations: 164.3 kB / 451.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.228e-05/0.4617, allocations: 28.02 kB / 451.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.4623, allocations: 71.2 kB / 451.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.4625, allocations: 102.4 kB / 451.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-05/0.4625, allocations: 33.44 kB / 451.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001167/0.4626, allocations: 142 kB / 451.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4626, allocations: 0 / 451.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007448/0.4634, allocations: 122.4 kB / 451.7 MB, free: 484 kB / 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.003644/0.467, allocations: 2.118 MB / 453.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.4701, allocations: 1.03 MB / 454.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/0.4701, allocations: 1.969 kB / 454.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.4712, allocations: 334.7 kB / 455.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009802/0.4722, allocations: 130.6 kB / 455.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/0.4877, allocations: 6.787 MB / 462.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006005/0.4883, allocations: 0.8094 MB / 462.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000548/0.4888, allocations: 102.3 kB / 463 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/0.4892, allocations: 116.9 kB / 463.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4892, allocations: 0 / 463.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04372/0.533, allocations: 11.36 MB / 474.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.062/9.595, allocations: 14.67 kB / 474.5 MB, free: 15.04 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.229479700094089]