Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.00139/0.00139, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001358/0.001358, allocations: 187.4 kB / 23.72 MB, free: 4.684 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.52/1.52, allocations: 225.6 MB / 252.5 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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 51.91 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2949, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004434/0.2994, allocations: 2.357 MB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.301, allocations: 0.7794 MB / 425.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/0.3011, allocations: 7.938 kB / 425.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.3015, allocations: 51.56 kB / 425.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.3017, allocations: 59.56 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005121/0.3022, allocations: 174.9 kB / 426 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004653/0.3027, allocations: 367.6 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.3029, allocations: 75.78 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.3031, allocations: 167.4 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.3034, allocations: 175.3 kB / 426.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.098e-05/0.3035, allocations: 36 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.335e-05/0.3035, allocations: 32 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.3037, allocations: 91.73 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.3038, allocations: 143.3 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.3043, allocations: 331 kB / 427.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3043, allocations: 0 / 427.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3043, allocations: 0 / 427.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.3043, allocations: 0 / 427.4 MB, free: 9.762 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.001301/0.3056, allocations: 0.5483 MB / 428 MB, free: 9.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.3056, allocations: 8.031 kB / 428 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.055e-05/0.3057, allocations: 78.72 kB / 428.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.3058, allocations: 36.75 kB / 428.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.3063, allocations: 210 kB / 428.3 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003577/0.3066, allocations: 351.9 kB / 428.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.958e-05/0.3067, allocations: 24.38 kB / 428.7 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.308, allocations: 0.5541 MB / 429.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.308, allocations: 4 kB / 429.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.3081, allocations: 12 kB / 429.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.3081, allocations: 8 kB / 429.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.3095, allocations: 0.5112 MB / 429.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.3112, allocations: 0.949 MB / 430.7 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.3129, allocations: 482.5 kB / 431.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006509/0.3136, allocations: 243.4 kB / 431.4 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.959e-05/0.3136, allocations: 7.938 kB / 431.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/0.3137, allocations: 38.72 kB / 431.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.054e-06/0.3137, allocations: 4 kB / 431.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03847/0.3521, allocations: 5.732 MB / 437.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.3523, allocations: 141 kB / 437.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.3525, allocations: 191.3 kB / 437.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.122e-05/0.3526, allocations: 41.7 kB / 437.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.3527, allocations: 149.7 kB / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002151/0.3529, allocations: 198.3 kB / 437.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002819/0.3532, allocations: 106.7 kB / 438 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3534, allocations: 350.8 kB / 438.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.355, allocations: 0.611 MB / 439 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.3568, allocations: 0.8002 MB / 439.8 MB, free: 13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/0.3599, allocations: 1.243 MB / 441 MB, free: 11.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.3599, allocations: 7.938 kB / 441 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003644/0.3636, allocations: 1.402 MB / 442.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.3636, allocations: 10.5 kB / 442.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.3636, allocations: 8 kB / 442.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.2e-05/0.3636, allocations: 8 kB / 442.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.365, allocations: 207.6 kB / 442.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.035e-05/0.365, allocations: 15.98 kB / 442.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009447/0.366, allocations: 99.81 kB / 442.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.402e-05/0.3661, allocations: 31.98 kB / 442.8 MB, free: 9.887 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.0003434/0.3664, allocations: 182.6 kB / 443 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003272/0.3667, allocations: 157.7 kB / 443.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001787/0.3669, allocations: 63.3 kB / 443.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3669, allocations: 8 kB / 443.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3669, allocations: 0 / 443.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.3669, allocations: 11.98 kB / 443.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005049/0.372, allocations: 2.136 MB / 445.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.372, allocations: 12 kB / 445.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007798/0.3728, allocations: 179.7 kB / 445.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.888e-05/0.3728, allocations: 12 kB / 445.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.724e-05/0.3729, allocations: 32.36 kB / 445.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.025e-05/0.3729, allocations: 19.94 kB / 445.6 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/0.3729, allocations: 19.88 kB / 445.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003345/0.3762, allocations: 1.553 MB / 447.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.3764, allocations: 83.75 kB / 447.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.075e-05/0.3765, allocations: 36.05 kB / 447.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/0.3771, allocations: 71.92 kB / 447.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/0.3773, allocations: 99.64 kB / 447.4 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.878e-05/0.3774, allocations: 31.94 kB / 447.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.3775, allocations: 139.2 kB / 447.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3775, allocations: 0 / 447.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006734/0.3782, allocations: 128 kB / 447.7 MB, free: 4.594 MB / 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.003732/0.3819, allocations: 2.129 MB / 449.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002879/0.3848, allocations: 1.035 MB / 450.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.3848, allocations: 0 / 450.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009906/0.3858, allocations: 333.9 kB / 451.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009836/0.3868, allocations: 131.8 kB / 451.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.4006, allocations: 6.781 MB / 458.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005347/0.4011, allocations: 0.8128 MB / 458.9 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004854/0.4016, allocations: 99.3 kB / 459 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003934/0.402, allocations: 115.4 kB / 459.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.402, allocations: 0 / 459.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0484/0.4504, allocations: 11.95 MB / 471.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.83, allocations: 2.578 kB / 471.1 MB, free: 12.68 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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: 15.635371422999015]