Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.606/1.606, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1414, allocations: 53.34 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004363/0.1458, allocations: 2.403 MB / 428.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.1478, allocations: 0.8767 MB / 429.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.148, allocations: 11.88 kB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.1484, allocations: 55.52 kB / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.1487, allocations: 67.48 kB / 429.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007438/0.1494, allocations: 199.6 kB / 429.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005526/0.15, allocations: 395.5 kB / 430.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.1502, allocations: 71.52 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003827/0.1506, allocations: 183.4 kB / 430.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003032/0.1509, allocations: 183.2 kB / 430.7 MB, free: 348 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.145e-05/0.151, allocations: 32 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.846e-05/0.151, allocations: 36 kB / 430.8 MB, free: 280 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.1512, allocations: 115.6 kB / 430.9 MB, free: 164 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.1514, allocations: 155.1 kB / 431 MB, free: 8 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2532/0.4046, allocations: 368.5 kB / 431.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.4046, allocations: 0.9688 kB / 431.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4046, allocations: 0 / 431.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.4046, allocations: 0 / 431.4 MB, free: 8.094 MB / 350.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.001274/0.4058, allocations: 0.681 MB / 432.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4059, allocations: 11.84 kB / 432.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.934e-05/0.406, allocations: 73.03 kB / 432.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.607e-05/0.4061, allocations: 45.55 kB / 432.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.4065, allocations: 310.2 kB / 432.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.4067, allocations: 136.8 kB / 432.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.4068, allocations: 40.16 kB / 432.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.408, allocations: 0.5616 MB / 433.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.408, allocations: 0 / 433.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.408, allocations: 11.66 kB / 433.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.408, allocations: 8.766 kB / 433.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.4094, allocations: 0.5064 MB / 433.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.4108, allocations: 1.029 MB / 434.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.4124, allocations: 483.5 kB / 435.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006597/0.4131, allocations: 233.9 kB / 435.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/0.4131, allocations: 10.47 kB / 435.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.4132, allocations: 44.7 kB / 435.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.804e-06/0.4132, allocations: 0 / 435.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03916/0.4523, allocations: 5.773 MB / 441.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.4524, allocations: 145.3 kB / 441.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.4527, allocations: 259 kB / 441.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.656e-05/0.4528, allocations: 37.08 kB / 441.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.4529, allocations: 155.8 kB / 441.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.4531, allocations: 201.7 kB / 442.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003047/0.4534, allocations: 115 kB / 442.2 MB, free: 5.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.4535, allocations: 346.7 kB / 442.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.4551, allocations: 0.6194 MB / 443.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.4568, allocations: 0.7983 MB / 444 MB, free: 4.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003032/0.4598, allocations: 1.249 MB / 445.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4598, allocations: 1.094 kB / 445.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003812/0.4636, allocations: 1.403 MB / 446.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4636, allocations: 7.031 kB / 446.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.4637, allocations: 6.344 kB / 446.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.832e-05/0.4637, allocations: 9.859 kB / 446.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.4651, allocations: 212.2 kB / 446.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.077e-05/0.4651, allocations: 13.84 kB / 446.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009574/0.4661, allocations: 102.3 kB / 447 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.515e-05/0.4662, allocations: 28.77 kB / 447 MB, free: 3.004 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.0003493/0.4665, allocations: 188.4 kB / 447.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003074/0.4668, allocations: 168.3 kB / 447.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001908/0.467, allocations: 73.03 kB / 447.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.467, allocations: 7.594 kB / 447.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.467, allocations: 2 kB / 447.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.467, allocations: 4.875 kB / 447.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/0.4716, allocations: 2.187 MB / 449.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.64e-05/0.4716, allocations: 12.16 kB / 449.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007473/0.4723, allocations: 187.4 kB / 449.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.76e-05/0.4724, allocations: 13.84 kB / 449.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.4724, allocations: 22.75 kB / 449.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.77e-05/0.4724, allocations: 20.38 kB / 449.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-05/0.4724, allocations: 20.77 kB / 449.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/0.4754, allocations: 1.568 MB / 451.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.4757, allocations: 179.7 kB / 451.6 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.071e-05/0.4757, allocations: 24.03 kB / 451.7 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006032/0.4763, allocations: 76.39 kB / 451.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.4765, allocations: 101.2 kB / 451.8 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.368e-05/0.4766, allocations: 34.52 kB / 451.9 MB, free: 140 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.4767, allocations: 185.4 kB / 452.1 MB, free: 12 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4767, allocations: 1.094 kB / 452.1 MB, free: 12 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008074/0.4776, allocations: 121.7 kB / 452.2 MB, free: 0 / 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.0039/0.4815, allocations: 2.134 MB / 454.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003121/0.4846, allocations: 1.028 MB / 455.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/0.4846, allocations: 2.062 kB / 455.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.4857, allocations: 334.2 kB / 455.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.4867, allocations: 148.6 kB / 455.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.5019, allocations: 6.914 MB / 462.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000576/0.5024, allocations: 0.8322 MB / 463.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00055/0.503, allocations: 94.81 kB / 463.7 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.5034, allocations: 121.1 kB / 463.8 MB, free: 7.543 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5034, allocations: 0 / 463.8 MB, free: 7.543 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04288/0.5463, allocations: 11.69 MB / 475.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.029/9.575, allocations: 7.734 kB / 475.5 MB, free: 13.99 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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: 12.501110117998905]