Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0019/0.0019, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002333/0.002333, allocations: 205.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 59.91 kB / 377.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2751, allocations: 53.4 MB / 431.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003832/0.2789, allocations: 2.246 MB / 433.4 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.2807, allocations: 0.7639 MB / 434.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.2809, allocations: 7.938 kB / 434.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.2812, allocations: 51.56 kB / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002732/0.2815, allocations: 63.56 kB / 434.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007309/0.2822, allocations: 175.6 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005909/0.2828, allocations: 375.5 kB / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.283, allocations: 67.59 kB / 434.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.2835, allocations: 163.5 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000332/0.2838, allocations: 167.2 kB / 435.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.51e-05/0.2839, allocations: 36 kB / 435.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.072e-05/0.284, allocations: 32 kB / 435.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.2841, allocations: 99.7 kB / 435.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.2843, allocations: 123.4 kB / 435.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005986/0.2849, allocations: 336.5 kB / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2849, allocations: 0 / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2849, allocations: 0 / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.2849, allocations: 0 / 435.8 MB, free: 1.738 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.001705/0.2866, allocations: 0.5444 MB / 436.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.2867, allocations: 11.98 kB / 436.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.2868, allocations: 66.73 kB / 436.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.2869, allocations: 44.73 kB / 436.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.2874, allocations: 213.6 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004061/0.2878, allocations: 347.9 kB / 437 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.618e-05/0.2879, allocations: 44.25 kB / 437 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.2891, allocations: 0.5465 MB / 437.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.2892, allocations: 4 kB / 437.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.2892, allocations: 8 kB / 437.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.2892, allocations: 8 kB / 437.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.2907, allocations: 0.5152 MB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.2922, allocations: 0.8866 MB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.2937, allocations: 474.5 kB / 439.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006688/0.2944, allocations: 239.4 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.2945, allocations: 7.938 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.2945, allocations: 38.56 kB / 439.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 3.266e-06/0.2945, allocations: 0 / 439.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04288/0.3374, allocations: 5.753 MB / 445.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/0.3375, allocations: 156.9 kB / 445.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.3379, allocations: 198.7 kB / 445.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.338, allocations: 33.7 kB / 445.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3381, allocations: 141.8 kB / 446 MB, free: 7.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000302/0.3384, allocations: 206.3 kB / 446.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004247/0.3389, allocations: 110.7 kB / 446.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.3391, allocations: 342.8 kB / 446.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002522/0.3416, allocations: 0.6188 MB / 447.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/0.3435, allocations: 0.8042 MB / 448.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003272/0.3468, allocations: 1.26 MB / 449.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.3468, allocations: 0 / 449.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003756/0.3506, allocations: 1.411 MB / 450.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.3506, allocations: 4 kB / 450.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.3506, allocations: 8 kB / 450.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.285e-05/0.3507, allocations: 11.94 kB / 450.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.352, allocations: 216 kB / 451 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.408e-05/0.352, allocations: 16.03 kB / 451 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009611/0.353, allocations: 107.8 kB / 451.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.179e-05/0.3531, allocations: 28.31 kB / 451.2 MB, free: 1.852 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.0003156/0.3534, allocations: 186.2 kB / 451.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.3537, allocations: 153.4 kB / 451.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001789/0.3539, allocations: 63.31 kB / 451.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.3539, allocations: 15.94 kB / 451.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3539, allocations: 0 / 451.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.3539, allocations: 3.984 kB / 451.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005052/0.3589, allocations: 1.968 MB / 453.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-05/0.359, allocations: 11.94 kB / 453.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007937/0.3598, allocations: 184.3 kB / 453.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.337e-05/0.3598, allocations: 20 kB / 453.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.636e-05/0.3598, allocations: 28 kB / 453.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.722e-05/0.3599, allocations: 15.94 kB / 453.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.3599, allocations: 19.88 kB / 453.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004231/0.3641, allocations: 1.573 MB / 455.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004332/0.3645, allocations: 91.67 kB / 455.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.3647, allocations: 20.06 kB / 455.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009775/0.3657, allocations: 87.91 kB / 455.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/0.366, allocations: 95.64 kB / 455.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-05/0.3661, allocations: 28 kB / 455.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002369/0.3663, allocations: 156.2 kB / 455.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3663, allocations: 0 / 455.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001151/0.3675, allocations: 124 kB / 456 MB, free: 12.69 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.005288/0.3728, allocations: 2.142 MB / 458.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00303/0.3758, allocations: 1.045 MB / 459.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/0.3758, allocations: 0 / 459.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.3769, allocations: 339.2 kB / 459.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3779, allocations: 135.6 kB / 459.6 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/0.3923, allocations: 6.83 MB / 466.4 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.3926, allocations: 203.3 kB / 466.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007612/0.3934, allocations: 95.31 kB / 466.7 MB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005688/0.3939, allocations: 123.4 kB / 466.9 MB, free: 1.121 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.3939, allocations: 0 / 466.9 MB, free: 1.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05103/0.445, allocations: 12.56 MB / 479.4 MB, free: 4.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.72, allocations: 8.047 kB / 479.4 MB, free: 4.711 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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.422282192390412]