Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001748/0.001749, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002217/0.002217, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001449, allocations: 56.3 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1128, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003707/0.1165, allocations: 2.39 MB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.1182, allocations: 0.865 MB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/0.1184, allocations: 11.94 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.1188, allocations: 55.52 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.119, allocations: 63.48 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006024/0.1196, allocations: 195.6 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004409/0.1201, allocations: 387.5 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1203, allocations: 115.4 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003192/0.1206, allocations: 171.4 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002632/0.1209, allocations: 183.2 kB / 362 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.566e-05/0.121, allocations: 32 kB / 362 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.248e-05/0.121, allocations: 36 kB / 362.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.1212, allocations: 103.7 kB / 362.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1213, allocations: 163 kB / 362.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.1217, allocations: 359 kB / 362.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1217, allocations: 4 kB / 362.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1217, allocations: 3.938 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.386e-05/0.1218, allocations: 0 / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001239/0.123, allocations: 0.6665 MB / 363.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.123, allocations: 12.03 kB / 363.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.626e-05/0.1231, allocations: 66.73 kB / 363.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.1232, allocations: 48.47 kB / 363.5 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.1236, allocations: 299.1 kB / 363.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.1238, allocations: 138.3 kB / 363.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.1239, allocations: 32.38 kB / 363.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.125, allocations: 0.5715 MB / 364.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.125, allocations: 4 kB / 364.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.1251, allocations: 11.94 kB / 364.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.1251, allocations: 8 kB / 364.5 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.1265, allocations: 0.5035 MB / 365 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.128, allocations: 1.018 MB / 366 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.1296, allocations: 0.5101 MB / 366.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006418/0.1303, allocations: 266.4 kB / 366.8 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.1303, allocations: 12.14 kB / 366.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.1304, allocations: 42.56 kB / 366.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.934e-06/0.1304, allocations: 0 / 366.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2117/0.342, allocations: 5.755 MB / 372.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/0.3422, allocations: 153 kB / 372.8 MB, free: 20.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.3425, allocations: 260.8 kB / 373 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.546e-05/0.3426, allocations: 40.77 kB / 373.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.001e-05/0.3427, allocations: 150.8 kB / 373.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.3429, allocations: 192.5 kB / 373.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.3432, allocations: 115.3 kB / 373.5 MB, free: 20.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.147e-05/0.3433, allocations: 343.7 kB / 373.8 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.345, allocations: 0.6156 MB / 374.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001869/0.3468, allocations: 0.7984 MB / 375.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/0.3499, allocations: 1.253 MB / 376.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3499, allocations: 2.078 kB / 376.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003858/0.3538, allocations: 1.399 MB / 377.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.3538, allocations: 10.19 kB / 377.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.3539, allocations: 7.031 kB / 377.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.783e-05/0.3539, allocations: 13.97 kB / 377.9 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.3553, allocations: 208.1 kB / 378.1 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-05/0.3554, allocations: 15.03 kB / 378.2 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.3564, allocations: 97.39 kB / 378.3 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.671e-05/0.3565, allocations: 31.12 kB / 378.3 MB, free: 17.77 MB / 302.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.0004059/0.3569, allocations: 194.9 kB / 378.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.3573, allocations: 164.2 kB / 378.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.3575, allocations: 67.88 kB / 378.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.3575, allocations: 8.094 kB / 378.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.3575, allocations: 2.188 kB / 378.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.3575, allocations: 4.734 kB / 378.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005059/0.3626, allocations: 2.184 MB / 380.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.159e-05/0.3627, allocations: 9.812 kB / 380.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007874/0.3635, allocations: 178.8 kB / 381.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.403e-05/0.3635, allocations: 14.39 kB / 381.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.865e-05/0.3636, allocations: 28.33 kB / 381.1 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-05/0.3636, allocations: 28.3 kB / 381.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.485e-05/0.3636, allocations: 16.06 kB / 381.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003519/0.3671, allocations: 1.552 MB / 382.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002685/0.3674, allocations: 178.8 kB / 382.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.71e-05/0.3675, allocations: 34.7 kB / 382.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006081/0.3681, allocations: 77.59 kB / 383 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.3684, allocations: 93.02 kB / 383.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.686e-05/0.3684, allocations: 32.17 kB / 383.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.3687, allocations: 194.9 kB / 383.3 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3687, allocations: 0 / 383.3 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008128/0.3695, allocations: 123.7 kB / 383.4 MB, free: 14.98 MB / 302.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.003405/0.3729, allocations: 2.137 MB / 385.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003/0.3759, allocations: 1.151 MB / 386.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.3759, allocations: 1.625 kB / 386.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.377, allocations: 344.1 kB / 387.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.378, allocations: 144.6 kB / 387.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.3904, allocations: 6.907 MB / 394.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.3908, allocations: 0.8277 MB / 394.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006802/0.3915, allocations: 102.2 kB / 395 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003921/0.3919, allocations: 116.4 kB / 395.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3919, allocations: 0 / 395.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0346/0.4265, allocations: 11.59 MB / 406.7 MB, free: 13.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.274/8.7, allocations: 4.062 kB / 406.8 MB, free: 13.16 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi