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.001376/0.001376, allocations: 112.7 kB / 20.43 MB, free: 1.453 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.001475/0.001475, allocations: 214 kB / 23.74 MB, free: 4.66 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.555/1.555, allocations: 230.5 MB / 257.4 MB, free: 8 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.001871/0.001871, allocations: 59.91 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2946, allocations: 53.41 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.005835/0.3005, allocations: 2.354 MB / 433.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002684/0.3032, allocations: 0.8105 MB / 434.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004115/0.3036, allocations: 7.938 kB / 434.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005963/0.3042, allocations: 59.55 kB / 434.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003654/0.3045, allocations: 55.58 kB / 434.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.3055, allocations: 183.5 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007113/0.3062, allocations: 367.6 kB / 435 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/0.3065, allocations: 71.78 kB / 435.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005306/0.3071, allocations: 171.5 kB / 435.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003993/0.3075, allocations: 179.3 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.335e-05/0.3076, allocations: 32 kB / 435.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.901e-05/0.3076, allocations: 32 kB / 435.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.3078, allocations: 107.6 kB / 435.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.3081, allocations: 135.3 kB / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000679/0.3087, allocations: 331 kB / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3087, allocations: 0 / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3087, allocations: 0 / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.3088, allocations: 0 / 436 MB, free: 1.828 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.001761/0.3105, allocations: 0.5444 MB / 436.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.004e-05/0.3106, allocations: 8.031 kB / 436.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.3107, allocations: 74.72 kB / 436.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.3109, allocations: 36.75 kB / 436.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006714/0.3115, allocations: 217.5 kB / 436.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004581/0.312, allocations: 347.9 kB / 437.2 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.681e-05/0.3121, allocations: 36.25 kB / 437.3 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.3139, allocations: 0.5426 MB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.3139, allocations: 4 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.123e-05/0.314, allocations: 12 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.314, allocations: 8 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.316, allocations: 0.5074 MB / 438.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.3183, allocations: 0.9489 MB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002326/0.3207, allocations: 490.5 kB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00094/0.3216, allocations: 238.9 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.006e-05/0.3217, allocations: 4 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.3217, allocations: 46.44 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 4.638e-06/0.3217, allocations: 4 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.06918/0.3909, allocations: 5.721 MB / 445.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.3911, allocations: 148.9 kB / 445.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/0.3915, allocations: 191.5 kB / 446.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.3916, allocations: 37.7 kB / 446.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.3918, allocations: 141.8 kB / 446.3 MB, free: 7.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003508/0.3921, allocations: 198.3 kB / 446.5 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004707/0.3926, allocations: 110.6 kB / 446.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002522/0.3928, allocations: 350.8 kB / 446.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003045/0.3959, allocations: 0.6149 MB / 447.6 MB, free: 5.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003239/0.3991, allocations: 0.7963 MB / 448.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005662/0.4048, allocations: 1.244 MB / 449.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.4048, allocations: 7.938 kB / 449.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006444/0.4112, allocations: 1.398 MB / 451 MB, free: 2.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.4113, allocations: 7.938 kB / 451 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.332e-05/0.4113, allocations: 8.234 kB / 451 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.256e-05/0.4114, allocations: 8 kB / 451 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/0.4139, allocations: 208.1 kB / 451.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.994e-05/0.4139, allocations: 15.94 kB / 451.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.4156, allocations: 107.8 kB / 451.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.4158, allocations: 31.97 kB / 451.4 MB, free: 1.961 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.0005175/0.4163, allocations: 185.5 kB / 451.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006019/0.4169, allocations: 157.3 kB / 451.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.4171, allocations: 59.31 kB / 451.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.118e-05/0.4172, allocations: 8 kB / 451.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.4172, allocations: 8 kB / 451.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.4172, allocations: 3.984 kB / 451.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00899/0.4262, allocations: 2.132 MB / 453.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/0.4262, allocations: 19.88 kB / 453.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/0.4276, allocations: 179.7 kB / 454.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.684e-05/0.4277, allocations: 12 kB / 454.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.295e-05/0.4278, allocations: 28.44 kB / 454.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.059e-05/0.4278, allocations: 23.94 kB / 454.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.097e-05/0.4278, allocations: 15.88 kB / 454.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003544/0.4313, allocations: 1.549 MB / 455.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.4316, allocations: 95.77 kB / 455.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.122e-05/0.4317, allocations: 27.98 kB / 455.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.4323, allocations: 71.92 kB / 455.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.4325, allocations: 99.64 kB / 456 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.4325, allocations: 35.92 kB / 456.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.4327, allocations: 143.5 kB / 456.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4327, allocations: 0 / 456.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006921/0.4334, allocations: 128 kB / 456.3 MB, free: 12.66 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: 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.003634/0.437, allocations: 2.125 MB / 458.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.4398, allocations: 1.026 MB / 459.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/0.4398, allocations: 0 / 459.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.4409, allocations: 330.3 kB / 459.8 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.4419, allocations: 142.9 kB / 460 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.4554, allocations: 6.784 MB / 466.7 MB, free: 1.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000485/0.4559, allocations: 0.8089 MB / 467.5 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005068/0.4564, allocations: 99.3 kB / 467.6 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.4568, allocations: 115.4 kB / 467.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4568, allocations: 0 / 467.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04767/0.5045, allocations: 11.95 MB / 479.7 MB, free: 4.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.45, allocations: 19.67 kB / 479.7 MB, free: 4.699 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.311885688002803]