Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001839/0.001839, 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.002116/0.002116, allocations: 194.6 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.427/1.427, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 47.91 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2586, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004212/0.2628, allocations: 1.999 MB / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2643, allocations: 0.5415 MB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.2645, allocations: 4 kB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.2647, allocations: 19.73 kB / 425.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.2649, allocations: 35.72 kB / 425.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.2653, allocations: 67.81 kB / 425.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000269/0.2656, allocations: 127.5 kB / 425.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.2658, allocations: 46.03 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2659, allocations: 51.8 kB / 425.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.266, allocations: 55.69 kB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.266, allocations: 12 kB / 425.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.742e-05/0.2661, allocations: 8 kB / 425.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.527e-05/0.2661, allocations: 31.91 kB / 425.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.092e-05/0.2662, allocations: 55.67 kB / 425.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.2665, allocations: 152.9 kB / 425.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2665, allocations: 8 kB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2665, allocations: 0 / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2665, allocations: 0 / 425.8 MB, free: 11.15 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007119/0.2672, allocations: 381.6 kB / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.2673, allocations: 8.031 kB / 426.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.392e-05/0.2673, allocations: 46.73 kB / 426.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.371e-05/0.2674, allocations: 16.84 kB / 426.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.2677, allocations: 162.3 kB / 426.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.2677, allocations: 8.375 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.2678, allocations: 20.33 kB / 426.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005433/0.2683, allocations: 266.5 kB / 426.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.2683, allocations: 0 / 426.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.2683, allocations: 11.88 kB / 426.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2683, allocations: 4 kB / 426.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002735/0.2686, allocations: 87.88 kB / 426.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006913/0.2693, allocations: 0.5193 MB / 427.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.2697, allocations: 135.9 kB / 427.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.2698, allocations: 74.62 kB / 427.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.2699, allocations: 4 kB / 427.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.2699, allocations: 34.5 kB / 427.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.824e-06/0.2699, allocations: 0 / 427.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005566/0.2705, allocations: 193.4 kB / 427.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.755e-05/0.2705, allocations: 114.8 kB / 427.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.2707, allocations: 158.2 kB / 428 MB, free: 8.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.2707, allocations: 29.7 kB / 428 MB, free: 8.672 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/0.2708, allocations: 108.5 kB / 428.1 MB, free: 8.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.322e-05/0.2709, allocations: 35.77 kB / 428.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.02e-05/0.2709, allocations: 33.67 kB / 428.2 MB, free: 8.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2711, allocations: 326.8 kB / 428.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.2712, allocations: 40.09 kB / 428.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.2714, allocations: 143.7 kB / 428.7 MB, free: 7.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.2717, allocations: 181.5 kB / 428.8 MB, free: 7.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.2717, allocations: 7.938 kB / 428.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003983/0.2721, allocations: 201.1 kB / 429 MB, free: 7.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.2721, allocations: 4 kB / 429 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2721, allocations: 4 kB / 429.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.2721, allocations: 8 kB / 429.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.2723, allocations: 44.44 kB / 429.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.2723, allocations: 11.94 kB / 429.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.2724, allocations: 23.89 kB / 429.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.2724, allocations: 8.375 kB / 429.1 MB, free: 7.395 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.00013/0.2726, allocations: 133.7 kB / 429.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.2727, allocations: 93.52 kB / 429.4 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.453e-05/0.2728, allocations: 24.7 kB / 429.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.2728, allocations: 4 kB / 429.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2728, allocations: 0 / 429.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2728, allocations: 0 / 429.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002866/0.2731, allocations: 188.5 kB / 429.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2731, allocations: 0 / 429.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.2733, allocations: 35.97 kB / 429.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.2733, allocations: 0 / 429.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.2733, allocations: 4 kB / 429.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.2733, allocations: 4 kB / 429.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2733, allocations: 0 / 429.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.2739, allocations: 383.3 kB / 430 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.596e-05/0.274, allocations: 35.98 kB / 430 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.274, allocations: 0 / 430 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.2741, allocations: 11.98 kB / 430 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.2742, allocations: 4 kB / 430.1 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.2742, allocations: 4 kB / 430.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.2743, allocations: 124 kB / 430.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2743, allocations: 4 kB / 430.2 MB, free: 6.285 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003409/0.2746, allocations: 27.94 kB / 430.2 MB, free: 6.258 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0008748/0.2755, allocations: 0.923 MB / 431.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.2758, allocations: 115.7 kB / 431.2 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2758, allocations: 0.9375 kB / 431.2 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.2759, allocations: 35.91 kB / 431.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.2765, allocations: 66.36 kB / 431.3 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.2791, allocations: 2.113 MB / 433.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.2792, allocations: 118.4 kB / 433.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.938e-05/0.2793, allocations: 5.438 kB / 433.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.864e-05/0.2794, allocations: 39.42 kB / 433.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2794, allocations: 0 / 433.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.3126, allocations: 3.569 MB / 437.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.43, allocations: 4.062 kB / 437.2 MB, free: 15.24 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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.phi,load.w [Calling sys.exit(0), Time elapsed: 13.989126001950353]