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.001767/0.001767, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002254/0.002254, allocations: 212.1 kB / 23.73 MB, free: 4.523 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.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001504/0.001504, allocations: 47.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2632, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004067/0.2673, allocations: 2.246 MB / 433.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.2689, allocations: 0.7677 MB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.2691, allocations: 7.938 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003039/0.2694, allocations: 51.56 kB / 434.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.2696, allocations: 59.56 kB / 434.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.2701, allocations: 171.6 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.2705, allocations: 379.5 kB / 434.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.2707, allocations: 67.61 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003187/0.271, allocations: 171.5 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.2713, allocations: 179.3 kB / 435.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.914e-05/0.2714, allocations: 36 kB / 435.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.925e-05/0.2714, allocations: 32 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.2715, allocations: 99.66 kB / 435.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.2717, allocations: 123.4 kB / 435.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.2721, allocations: 336.5 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2721, allocations: 0 / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2721, allocations: 4 kB / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.2721, allocations: 0 / 435.8 MB, free: 1.941 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.0013/0.2734, allocations: 0.5405 MB / 436.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.2734, allocations: 12.03 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.244e-05/0.2735, allocations: 66.72 kB / 436.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.441e-05/0.2736, allocations: 40.75 kB / 436.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004491/0.274, allocations: 210.5 kB / 436.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000327/0.2744, allocations: 355.8 kB / 437 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-05/0.2744, allocations: 28.33 kB / 437 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.2757, allocations: 0.552 MB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.2758, allocations: 0 / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.2758, allocations: 12 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.736e-05/0.2758, allocations: 11.94 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.2774, allocations: 0.5113 MB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.2789, allocations: 0.8945 MB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.2804, allocations: 466.2 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006917/0.2811, allocations: 243.4 kB / 439.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.405e-05/0.2812, allocations: 7.984 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.2812, allocations: 42.5 kB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 3.637e-06/0.2812, allocations: 3.984 kB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03841/0.3196, allocations: 5.748 MB / 445.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.3197, allocations: 148.9 kB / 445.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.32, allocations: 199.2 kB / 445.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.422e-05/0.3201, allocations: 41.7 kB / 445.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3202, allocations: 137.8 kB / 446 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002367/0.3205, allocations: 206.3 kB / 446.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/0.3208, allocations: 114.7 kB / 446.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3209, allocations: 342.8 kB / 446.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.3226, allocations: 0.6227 MB / 447.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.3245, allocations: 0.8042 MB / 448.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003313/0.3278, allocations: 1.256 MB / 449.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3278, allocations: 0 / 449.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.004054/0.3319, allocations: 1.411 MB / 450.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.3319, allocations: 8.375 kB / 450.7 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.3319, allocations: 12.31 kB / 450.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.729e-05/0.332, allocations: 16.31 kB / 450.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.3334, allocations: 203.7 kB / 451 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.004e-05/0.3335, allocations: 15.92 kB / 451 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009754/0.3344, allocations: 107.8 kB / 451.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-05/0.3345, allocations: 35.91 kB / 451.1 MB, free: 2.059 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.0003635/0.3349, allocations: 181.6 kB / 451.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000344/0.3352, allocations: 153.4 kB / 451.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.3354, allocations: 63.3 kB / 451.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.3354, allocations: 11.94 kB / 451.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.3354, allocations: 4 kB / 451.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3354, allocations: 3.984 kB / 451.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005248/0.3407, allocations: 1.961 MB / 453.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.907e-05/0.3407, allocations: 15.94 kB / 453.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008208/0.3415, allocations: 179.7 kB / 453.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.842e-05/0.3415, allocations: 12 kB / 453.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.3416, allocations: 27.94 kB / 453.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.131e-05/0.3416, allocations: 23.92 kB / 453.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/0.3416, allocations: 15.94 kB / 453.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003683/0.3453, allocations: 1.573 MB / 455.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000267/0.3456, allocations: 87.69 kB / 455.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/0.3457, allocations: 27.98 kB / 455.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.3463, allocations: 79.91 kB / 455.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.3465, allocations: 103.6 kB / 455.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.262e-05/0.3466, allocations: 32 kB / 455.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001607/0.3467, allocations: 156.2 kB / 455.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3467, allocations: 0 / 455.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006899/0.3474, allocations: 124.2 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.004046/0.3515, allocations: 2.146 MB / 458.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003177/0.3546, allocations: 1.046 MB / 459.1 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.3546, allocations: 0 / 459.1 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.3558, allocations: 342.3 kB / 459.5 MB, free: 9.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.3568, allocations: 123.7 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.01476/0.3716, allocations: 6.834 MB / 466.4 MB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.3719, allocations: 207.3 kB / 466.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005018/0.3724, allocations: 95.31 kB / 466.7 MB, free: 1.449 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/0.3727, allocations: 119.4 kB / 466.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3727, allocations: 0 / 466.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04727/0.42, allocations: 12.78 MB / 479.6 MB, free: 4.758 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.57, allocations: 2.75 kB / 479.6 MB, free: 4.758 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.347151785012102]