Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001374/0.001374, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001426/0.001426, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.479/1.479, 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.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 51.91 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1148, allocations: 53.32 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003946/0.1187, allocations: 2.165 MB / 428.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.1202, allocations: 0.6938 MB / 429.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.1204, allocations: 3.938 kB / 429.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003019/0.1207, allocations: 43.7 kB / 429.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.1209, allocations: 51.56 kB / 429.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.1214, allocations: 127.8 kB / 429.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.1218, allocations: 335.2 kB / 429.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.122, allocations: 56.31 kB / 429.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003494/0.1224, allocations: 147.5 kB / 429.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.1226, allocations: 159.4 kB / 430.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.1227, allocations: 32 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.161e-05/0.1228, allocations: 28 kB / 430.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1229, allocations: 91.72 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.123, allocations: 119.4 kB / 430.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.1234, allocations: 290.8 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1234, allocations: 3.938 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1234, allocations: 0 / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1234, allocations: 0 / 430.6 MB, free: 484 kB / 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.2613/0.3847, allocations: 0.5801 MB / 431.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.172e-05/0.3848, allocations: 7.562 kB / 431.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.102e-05/0.3849, allocations: 62.25 kB / 431.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.28e-05/0.3849, allocations: 32.23 kB / 431.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.3854, allocations: 254.2 kB / 431.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.3856, allocations: 130.8 kB / 431.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.3856, allocations: 27.88 kB / 431.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009468/0.3866, allocations: 376 kB / 432.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.3866, allocations: 4.734 kB / 432.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.212e-05/0.3866, allocations: 9.656 kB / 432.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.3867, allocations: 6.344 kB / 432.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.3882, allocations: 495.3 kB / 432.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.3901, allocations: 1.005 MB / 433.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.3914, allocations: 321 kB / 433.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.3919, allocations: 165.4 kB / 434 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.392, allocations: 2.734 kB / 434 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.392, allocations: 40.58 kB / 434.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.993e-06/0.392, allocations: 0 / 434.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.0293/0.4213, allocations: 5.803 MB / 439.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.4213, allocations: 60.77 kB / 439.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.4216, allocations: 197.5 kB / 440.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/0.4217, allocations: 35.92 kB / 440.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.291e-05/0.4217, allocations: 147.8 kB / 440.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.4219, allocations: 187.1 kB / 440.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.4221, allocations: 96.62 kB / 440.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.4222, allocations: 340.5 kB / 440.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.4236, allocations: 463.2 kB / 441.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.425, allocations: 0.5187 MB / 441.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002489/0.4275, allocations: 0.8051 MB / 442.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4275, allocations: 0 / 442.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002861/0.4303, allocations: 0.9851 MB / 443.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.4304, allocations: 7.812 kB / 443.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4304, allocations: 5.312 kB / 443.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.4304, allocations: 3.094 kB / 443.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.4314, allocations: 171.7 kB / 443.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.4314, allocations: 4.438 kB / 443.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007272/0.4322, allocations: 87.89 kB / 444 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.929e-05/0.4322, allocations: 16.09 kB / 444 MB, free: 6.906 MB / 350.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.0002688/0.4325, allocations: 156.2 kB / 444.1 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.78e-05/0.4326, allocations: 29.31 kB / 444.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.4327, allocations: 53.42 kB / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.4327, allocations: 6.156 kB / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.4327, allocations: 1.828 kB / 444.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4327, allocations: 6.203 kB / 444.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004093/0.4368, allocations: 1.874 MB / 446.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.4368, allocations: 7.531 kB / 446.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000669/0.4375, allocations: 145.5 kB / 446.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.456e-05/0.4375, allocations: 11.66 kB / 446.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.479e-05/0.4376, allocations: 24.75 kB / 446.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.481e-05/0.4376, allocations: 21.41 kB / 446.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/0.4376, allocations: 13.31 kB / 446.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.4404, allocations: 1.219 MB / 447.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.4405, allocations: 151.9 kB / 447.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.4406, allocations: 22.64 kB / 447.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.4411, allocations: 69.69 kB / 447.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.4413, allocations: 87 kB / 447.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.4413, allocations: 24.77 kB / 447.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.4415, allocations: 151.2 kB / 448 MB, free: 4.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4415, allocations: 4.406 kB / 448 MB, free: 4.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005157/0.442, allocations: 95.66 kB / 448.1 MB, free: 4.668 MB / 350.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.002813/0.4448, allocations: 1.781 MB / 449.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002261/0.4471, allocations: 0.7802 MB / 450.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.4471, allocations: 1.312 kB / 450.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009077/0.448, allocations: 318.9 kB / 451 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.4486, allocations: 65.94 kB / 451.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009985/0.4586, allocations: 5.248 MB / 456.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.4591, allocations: 0.781 MB / 457.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004028/0.4595, allocations: 87.52 kB / 457.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.4598, allocations: 90.64 kB / 457.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4598, allocations: 0 / 457.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04001/0.4998, allocations: 8.386 MB / 465.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.811/9.311, allocations: 7.984 kB / 465.7 MB, free: 9.746 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 11.787404963979498]