Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001815/0.001815, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002357/0.002357, allocations: 192.1 kB / 23.71 MB, free: 4.406 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.624/1.624, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 47.92 kB / 370.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2678, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004251/0.2721, allocations: 2.267 MB / 424.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.2738, allocations: 0.76 MB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.274, allocations: 7.938 kB / 425.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.2744, allocations: 51.56 kB / 425.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002816/0.2746, allocations: 63.5 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006273/0.2753, allocations: 183.3 kB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005079/0.2758, allocations: 383.5 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.276, allocations: 74.02 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003282/0.2763, allocations: 167.4 kB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.2766, allocations: 163.3 kB / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.012e-05/0.2767, allocations: 32 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.636e-05/0.2767, allocations: 36 kB / 426.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.2769, allocations: 99.72 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.277, allocations: 131.4 kB / 426.9 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004362/0.2775, allocations: 342.6 kB / 427.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2775, allocations: 0 / 427.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2775, allocations: 4 kB / 427.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.2775, allocations: 0 / 427.3 MB, free: 9.656 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001346/0.2788, allocations: 0.5521 MB / 427.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2789, allocations: 12.03 kB / 427.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.291e-05/0.2789, allocations: 66.72 kB / 427.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.68e-05/0.279, allocations: 44.69 kB / 428 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.2795, allocations: 226.4 kB / 428.2 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/0.2799, allocations: 347.9 kB / 428.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.136e-05/0.2799, allocations: 36.3 kB / 428.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.2813, allocations: 0.5582 MB / 429.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.2813, allocations: 15.88 kB / 429.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.2813, allocations: 12 kB / 429.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2813, allocations: 8 kB / 429.1 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.2828, allocations: 0.5113 MB / 429.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.2845, allocations: 0.8752 MB / 430.5 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.286, allocations: 477.2 kB / 431 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006885/0.2867, allocations: 243.4 kB / 431.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-05/0.2868, allocations: 8.406 kB / 431.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.2868, allocations: 46.48 kB / 431.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.184e-06/0.2868, allocations: 0 / 431.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03947/0.3263, allocations: 5.745 MB / 437 MB, free: 15.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.3264, allocations: 152.8 kB / 437.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.3267, allocations: 212.3 kB / 437.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.314e-05/0.3268, allocations: 33.7 kB / 437.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.327, allocations: 153.7 kB / 437.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.3272, allocations: 202.2 kB / 437.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/0.3275, allocations: 110.6 kB / 437.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3277, allocations: 342.8 kB / 438.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001759/0.3294, allocations: 0.6266 MB / 438.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.3313, allocations: 0.8042 MB / 439.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003423/0.3347, allocations: 1.256 MB / 440.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.3347, allocations: 8 kB / 440.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003972/0.3387, allocations: 1.407 MB / 442.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.3387, allocations: 11.94 kB / 442.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.3388, allocations: 4 kB / 442.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.158e-05/0.3388, allocations: 8 kB / 442.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.3402, allocations: 207.7 kB / 442.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.738e-05/0.3402, allocations: 19.81 kB / 442.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.3412, allocations: 108.2 kB / 442.7 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.34e-05/0.3413, allocations: 28 kB / 442.7 MB, free: 9.727 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.0003819/0.3417, allocations: 177.6 kB / 442.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003825/0.3421, allocations: 157.3 kB / 443 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.3423, allocations: 63.3 kB / 443.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.3423, allocations: 8 kB / 443.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/0.3424, allocations: 3.938 kB / 443.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/0.3424, allocations: 7.984 kB / 443.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005374/0.3477, allocations: 1.972 MB / 445.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.528e-05/0.3478, allocations: 12 kB / 445.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008249/0.3486, allocations: 179.7 kB / 445.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.366e-05/0.3486, allocations: 15.94 kB / 445.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.065e-05/0.3487, allocations: 24 kB / 445.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.706e-05/0.3487, allocations: 28.14 kB / 445.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.315e-05/0.3487, allocations: 19.94 kB / 445.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003607/0.3523, allocations: 1.562 MB / 446.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.3526, allocations: 91.58 kB / 447 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.746e-05/0.3527, allocations: 32.22 kB / 447 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.3533, allocations: 79.97 kB / 447.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.3535, allocations: 99.64 kB / 447.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-05/0.3536, allocations: 35.98 kB / 447.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.3537, allocations: 145.2 kB / 447.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3537, allocations: 0 / 447.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006905/0.3544, allocations: 123.9 kB / 447.5 MB, free: 4.578 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: 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.003928/0.3584, allocations: 2.157 MB / 449.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003124/0.3615, allocations: 1.042 MB / 450.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/0.3615, allocations: 0 / 450.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.3626, allocations: 342.5 kB / 451 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009892/0.3636, allocations: 127.5 kB / 451.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.3778, allocations: 6.835 MB / 458 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.3781, allocations: 207.3 kB / 458.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005455/0.3786, allocations: 103.2 kB / 458.3 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/0.379, allocations: 115.4 kB / 458.4 MB, free: 8.996 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.379, allocations: 0 / 458.4 MB, free: 8.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04869/0.4277, allocations: 12.65 MB / 471.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.85, allocations: 11.86 kB / 471.1 MB, free: 12.53 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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.626662076916546]