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.001252/0.001252, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001373/0.001373, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.449/1.449, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 47.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2882, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004084/0.2922, allocations: 2.178 MB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.2939, allocations: 0.651 MB / 426.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.2941, allocations: 3.938 kB / 426.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000423/0.2945, allocations: 43.64 kB / 426.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.2947, allocations: 55.62 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.2952, allocations: 127.8 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005539/0.2958, allocations: 335.2 kB / 426.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.296, allocations: 52.56 kB / 426.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.2963, allocations: 147.5 kB / 427 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002949/0.2966, allocations: 155.4 kB / 427.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-05/0.2966, allocations: 28 kB / 427.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.2967, allocations: 36 kB / 427.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2968, allocations: 95.72 kB / 427.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.297, allocations: 119.4 kB / 427.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004635/0.2975, allocations: 287.7 kB / 427.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.2975, allocations: 0 / 427.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2975, allocations: 0 / 427.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.2975, allocations: 0 / 427.7 MB, free: 10.31 MB / 334.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.00125/0.2987, allocations: 0.509 MB / 428.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.2988, allocations: 8.031 kB / 428.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.996e-05/0.2988, allocations: 4.188 kB / 428.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.862e-05/0.2989, allocations: 74.73 kB / 428.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.05e-05/0.299, allocations: 32.75 kB / 428.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.2994, allocations: 194.6 kB / 428.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003691/0.2998, allocations: 347.3 kB / 428.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.564e-05/0.2998, allocations: 27.98 kB / 428.9 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008972/0.3007, allocations: 366.6 kB / 429.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.3007, allocations: 7.938 kB / 429.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.3008, allocations: 8 kB / 429.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3008, allocations: 4 kB / 429.2 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.3021, allocations: 0.4898 MB / 429.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.3041, allocations: 0.942 MB / 430.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.3054, allocations: 323.1 kB / 431 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005322/0.3059, allocations: 165.2 kB / 431.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.3059, allocations: 4.234 kB / 431.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.306, allocations: 34.8 kB / 431.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/0.306, allocations: 4 kB / 431.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02707/0.333, allocations: 5.652 MB / 436.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.3331, allocations: 55.84 kB / 436.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.3334, allocations: 210.7 kB / 437.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.903e-05/0.3334, allocations: 33.64 kB / 437.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3336, allocations: 153 kB / 437.3 MB, free: 408 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.3337, allocations: 186.4 kB / 437.5 MB, free: 220 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.334, allocations: 86.36 kB / 437.6 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3341, allocations: 334.8 kB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.3355, allocations: 469 kB / 438.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.3368, allocations: 0.5186 MB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002428/0.3393, allocations: 0.8023 MB / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3393, allocations: 0 / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00284/0.3421, allocations: 0.9929 MB / 440.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3421, allocations: 7.938 kB / 440.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.3421, allocations: 128 / 440.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.3421, allocations: 8 kB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009738/0.3431, allocations: 167.8 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.3431, allocations: 7.938 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007018/0.3438, allocations: 79.89 kB / 440.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.3439, allocations: 20 kB / 440.9 MB, free: 12.7 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.0002476/0.3441, allocations: 162.8 kB / 441.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.848e-05/0.3442, allocations: 31.75 kB / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.3444, allocations: 51.3 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3444, allocations: 4 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3444, allocations: 0 / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3444, allocations: 0 / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.3486, allocations: 1.85 MB / 443 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.3486, allocations: 8 kB / 443 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006511/0.3493, allocations: 147.7 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/0.3493, allocations: 12 kB / 443.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/0.3493, allocations: 20 kB / 443.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-05/0.3494, allocations: 15.94 kB / 443.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/0.3494, allocations: 15.88 kB / 443.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.3523, allocations: 1.225 MB / 444.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.3524, allocations: 71.8 kB / 444.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/0.3525, allocations: 16 kB / 444.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000524/0.353, allocations: 75.91 kB / 444.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.3532, allocations: 87.66 kB / 444.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.28e-05/0.3533, allocations: 24 kB / 444.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.3534, allocations: 151.2 kB / 444.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3534, allocations: 0 / 444.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004865/0.3539, allocations: 92 kB / 445 MB, free: 8.359 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.003192/0.3571, allocations: 1.793 MB / 446.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.3595, allocations: 0.7825 MB / 447.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.3595, allocations: 4 kB / 447.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009598/0.3605, allocations: 312.1 kB / 447.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.3611, allocations: 56.78 kB / 447.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.3723, allocations: 5.258 MB / 453.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.3727, allocations: 0.7762 MB / 454 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000418/0.3731, allocations: 87.12 kB / 454 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.3734, allocations: 99.41 kB / 454.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3734, allocations: 0 / 454.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03275/0.4062, allocations: 8.913 MB / 463 MB, free: 5.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.98, allocations: 18.55 kB / 463.1 MB, free: 5.98 MB / 366.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.546644484973513]