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.001429/0.001429, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00152/0.00152, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001659/0.001659, allocations: 43.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2485, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004059/0.2526, allocations: 2.245 MB / 433.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.2542, allocations: 0.7677 MB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.2544, allocations: 7.938 kB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003205/0.2548, allocations: 51.56 kB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.2551, allocations: 67.56 kB / 434.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005864/0.2556, allocations: 163.6 kB / 434.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.2562, allocations: 379.5 kB / 434.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.2564, allocations: 71.58 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003997/0.2568, allocations: 167.5 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.2571, allocations: 163.3 kB / 435.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-05/0.2572, allocations: 36 kB / 435.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.087e-05/0.2572, allocations: 36 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.2574, allocations: 95.72 kB / 435.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.2575, allocations: 115.4 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004825/0.258, allocations: 340.5 kB / 435.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.258, allocations: 0 / 435.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.258, allocations: 0 / 435.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.258, allocations: 4 kB / 435.7 MB, free: 1.945 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001366/0.2594, allocations: 0.5366 MB / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.2595, allocations: 16.02 kB / 436.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.233e-05/0.2595, allocations: 62.73 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.065e-05/0.2596, allocations: 40.75 kB / 436.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004491/0.2601, allocations: 214.5 kB / 436.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003356/0.2604, allocations: 351.9 kB / 436.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.339e-05/0.2605, allocations: 28.33 kB / 437 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.2618, allocations: 0.5519 MB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2619, allocations: 0 / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.108e-05/0.2619, allocations: 16.08 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.2619, allocations: 8 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.2635, allocations: 0.5152 MB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.2651, allocations: 0.8866 MB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.2667, allocations: 462.6 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006836/0.2674, allocations: 247 kB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.2674, allocations: 15.92 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.2675, allocations: 38.56 kB / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.2675, allocations: 0 / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03801/0.3055, allocations: 5.756 MB / 445.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.3056, allocations: 145 kB / 445.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.3058, allocations: 199.2 kB / 445.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.977e-05/0.3059, allocations: 45.7 kB / 445.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.306, allocations: 137.8 kB / 446 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.3063, allocations: 206.3 kB / 446.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002876/0.3065, allocations: 110.7 kB / 446.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3067, allocations: 342.8 kB / 446.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.3084, allocations: 0.6227 MB / 447.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.3102, allocations: 0.8042 MB / 448 MB, free: 5.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003238/0.3134, allocations: 1.26 MB / 449.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.3135, allocations: 0 / 449.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003839/0.3173, allocations: 1.411 MB / 450.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3173, allocations: 10.81 kB / 450.7 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.3173, allocations: 4 kB / 450.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.3174, allocations: 15.94 kB / 450.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.3187, allocations: 211.6 kB / 450.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.157e-05/0.3187, allocations: 11.98 kB / 451 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009657/0.3197, allocations: 107.8 kB / 451.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.574e-05/0.3198, allocations: 27.98 kB / 451.1 MB, free: 2.07 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003129/0.3201, allocations: 181.6 kB / 451.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/0.3204, allocations: 153.4 kB / 451.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.3206, allocations: 63.77 kB / 451.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.3206, allocations: 11.94 kB / 451.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3206, allocations: 4 kB / 451.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.3206, allocations: 7.984 kB / 451.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005168/0.3258, allocations: 1.964 MB / 453.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/0.3258, allocations: 15.94 kB / 453.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007832/0.3266, allocations: 179.7 kB / 453.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-05/0.3266, allocations: 12 kB / 453.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.645e-05/0.3267, allocations: 32.33 kB / 453.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.697e-05/0.3267, allocations: 23.94 kB / 453.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/0.3267, allocations: 15.94 kB / 453.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003596/0.3303, allocations: 1.573 MB / 455.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002489/0.3305, allocations: 91.67 kB / 455.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.366e-05/0.3306, allocations: 24 kB / 455.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.3312, allocations: 79.97 kB / 455.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.3315, allocations: 99.64 kB / 455.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.88e-05/0.3315, allocations: 32 kB / 455.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001629/0.3317, allocations: 152.3 kB / 455.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3317, allocations: 0 / 455.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006783/0.3324, allocations: 124 kB / 455.9 MB, free: 12.91 MB / 366.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.004034/0.3364, allocations: 2.146 MB / 458.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003072/0.3395, allocations: 1.045 MB / 459.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/0.3395, allocations: 0 / 459.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.3406, allocations: 343.2 kB / 459.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009511/0.3416, allocations: 138.1 kB / 459.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.3562, allocations: 6.83 MB / 466.4 MB, free: 1.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.3565, allocations: 207.3 kB / 466.6 MB, free: 1.547 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005206/0.357, allocations: 95.3 kB / 466.7 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.3574, allocations: 119.4 kB / 466.8 MB, free: 1.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3574, allocations: 0 / 466.8 MB, free: 1.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04739/0.4048, allocations: 12.56 MB / 479.4 MB, free: 4.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.8, allocations: 11.88 kB / 479.4 MB, free: 4.969 MB / 382.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 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.csv","/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] "Error: Could not read variable load.phi in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 14.500511982943863]