Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001842/0.001842, allocations: 105.8 kB / 20.43 MB, free: 1.473 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.001399/0.001399, allocations: 185 kB / 23.72 MB, free: 4.719 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.489/1.489, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 51.92 kB / 370.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3023, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004926/0.3073, allocations: 2.424 MB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.3091, allocations: 0.8338 MB / 425.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.3092, allocations: 11.88 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003459/0.3096, allocations: 63.55 kB / 425.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.3098, allocations: 67.48 kB / 426 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.3105, allocations: 202.6 kB / 426.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005415/0.311, allocations: 399.4 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.3113, allocations: 71.86 kB / 426.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003094/0.3116, allocations: 171.4 kB / 426.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.3119, allocations: 187.2 kB / 427 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.915e-05/0.312, allocations: 32 kB / 427 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.3121, allocations: 36 kB / 427.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.3122, allocations: 107.7 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.3124, allocations: 167.1 kB / 427.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006622/0.3131, allocations: 370.8 kB / 427.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.299e-05/0.3131, allocations: 0 / 427.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.3131, allocations: 0 / 427.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.3131, allocations: 4 kB / 427.7 MB, free: 9.5 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001642/0.3148, allocations: 0.6063 MB / 428.3 MB, free: 8.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.82e-05/0.3148, allocations: 8.031 kB / 428.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001441/0.315, allocations: 70.72 kB / 428.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.3151, allocations: 48.7 kB / 428.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006527/0.3158, allocations: 253.4 kB / 428.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004387/0.3162, allocations: 351.9 kB / 429 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.263e-05/0.3163, allocations: 32.31 kB / 429.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3177, allocations: 0.562 MB / 429.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.3177, allocations: 0 / 429.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.3177, allocations: 15.94 kB / 429.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3177, allocations: 12 kB / 429.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.3191, allocations: 0.5112 MB / 430.2 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.3209, allocations: 0.9568 MB / 431.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.3227, allocations: 486.6 kB / 431.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006319/0.3233, allocations: 239.4 kB / 431.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.322e-05/0.3234, allocations: 8 kB / 431.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.3234, allocations: 42.5 kB / 431.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.535e-06/0.3234, allocations: 0 / 431.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03954/0.3629, allocations: 5.776 MB / 437.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.3631, allocations: 148.9 kB / 437.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.3634, allocations: 261.8 kB / 438.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.517e-05/0.3635, allocations: 37.7 kB / 438.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3636, allocations: 149.7 kB / 438.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/0.3639, allocations: 202.3 kB / 438.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/0.3642, allocations: 118.6 kB / 438.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.3644, allocations: 342.8 kB / 438.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.3661, allocations: 0.6149 MB / 439.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.3678, allocations: 0.8002 MB / 440.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003165/0.371, allocations: 1.248 MB / 441.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.371, allocations: 0 / 441.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003705/0.3747, allocations: 1.405 MB / 443 MB, free: 9.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/0.3748, allocations: 8.406 kB / 443 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.201e-05/0.3748, allocations: 15.94 kB / 443 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.37e-05/0.3748, allocations: 8 kB / 443 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.3762, allocations: 203.7 kB / 443.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/0.3762, allocations: 11.94 kB / 443.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009766/0.3772, allocations: 107.8 kB / 443.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.656e-05/0.3773, allocations: 24 kB / 443.3 MB, free: 9.352 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.0003925/0.3777, allocations: 193.6 kB / 443.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003453/0.378, allocations: 165.3 kB / 443.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.3782, allocations: 63.62 kB / 443.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.3782, allocations: 11.98 kB / 443.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.3782, allocations: 0 / 443.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3782, allocations: 0 / 443.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005163/0.3834, allocations: 2.163 MB / 445.9 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.3834, allocations: 8 kB / 445.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007749/0.3842, allocations: 183.7 kB / 446.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.98e-05/0.3842, allocations: 19.98 kB / 446.1 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.995e-05/0.3843, allocations: 24 kB / 446.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.217e-05/0.3843, allocations: 19.92 kB / 446.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/0.3843, allocations: 15.94 kB / 446.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003386/0.3877, allocations: 1.557 MB / 447.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.388, allocations: 103.6 kB / 447.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.54e-05/0.3881, allocations: 31.98 kB / 447.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/0.3886, allocations: 83.97 kB / 448 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.3889, allocations: 103.5 kB / 448.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.081e-05/0.3889, allocations: 28 kB / 448.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002259/0.3891, allocations: 185.2 kB / 448.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3891, allocations: 192 / 448.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007423/0.3899, allocations: 127.9 kB / 448.4 MB, free: 3.945 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.003789/0.3937, allocations: 2.137 MB / 450.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.3965, allocations: 1.026 MB / 451.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3966, allocations: 384 / 451.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3976, allocations: 337.8 kB / 451.9 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.3986, allocations: 144.4 kB / 452 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.4124, allocations: 6.911 MB / 458.9 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.413, allocations: 0.8328 MB / 459.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004953/0.4135, allocations: 100.1 kB / 459.9 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003879/0.4138, allocations: 119.4 kB / 460 MB, free: 7.68 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4138, allocations: 0 / 460 MB, free: 7.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04518/0.459, allocations: 12.39 MB / 472.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.95, allocations: 4 kB / 472.4 MB, free: 11.44 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.000499563 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_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.689871931997914]