Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001301/0.001301, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001503/0.001503, allocations: 216 kB / 23.73 MB, free: 4.156 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.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 47.94 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2643, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004155/0.2685, allocations: 1.979 MB / 433 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2696, allocations: 0.5025 MB / 433.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.2697, allocations: 7.938 kB / 433.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.2698, allocations: 19.8 kB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.457e-05/0.2699, allocations: 27.78 kB / 433.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.2702, allocations: 67.73 kB / 433.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.2704, allocations: 115.6 kB / 433.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.2705, allocations: 41.59 kB / 433.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.2706, allocations: 47.86 kB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.059e-05/0.2707, allocations: 51.7 kB / 433.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.2708, allocations: 8 kB / 433.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.457e-05/0.2708, allocations: 12 kB / 433.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.2708, allocations: 27.92 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.706e-05/0.2709, allocations: 51.72 kB / 434 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.2711, allocations: 125.1 kB / 434.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.2711, allocations: 4 kB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2711, allocations: 0 / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.2711, allocations: 0 / 434.1 MB, free: 3.547 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006725/0.2718, allocations: 349.8 kB / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2718, allocations: 8.031 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.028e-05/0.2719, allocations: 42.75 kB / 434.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.2719, allocations: 20.84 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.2722, allocations: 150.3 kB / 434.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.2722, allocations: 12.38 kB / 434.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.2723, allocations: 20.31 kB / 434.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.2729, allocations: 242.5 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.2729, allocations: 4 kB / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.2729, allocations: 4 kB / 435 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2729, allocations: 0 / 435 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.2731, allocations: 87.88 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006684/0.2738, allocations: 0.5076 MB / 435.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.2741, allocations: 147.9 kB / 435.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.2743, allocations: 74.56 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.2743, allocations: 4 kB / 435.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.2743, allocations: 42.5 kB / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.2743, allocations: 0 / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005157/0.2748, allocations: 169.4 kB / 436 MB, free: 1.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.2749, allocations: 118.7 kB / 436.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.275, allocations: 133.7 kB / 436.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.2751, allocations: 29.83 kB / 436.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.688e-05/0.2751, allocations: 115.7 kB / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.2752, allocations: 27.83 kB / 436.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.532e-05/0.2752, allocations: 37.7 kB / 436.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.2754, allocations: 326.8 kB / 436.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.2755, allocations: 35.97 kB / 436.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.2758, allocations: 131.4 kB / 436.9 MB, free: 468 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.2762, allocations: 184.6 kB / 437.1 MB, free: 236 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2762, allocations: 0 / 437.1 MB, free: 236 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003755/0.2765, allocations: 185.7 kB / 437.3 MB, free: 44 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2766, allocations: 8.031 kB / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.2766, allocations: 11.94 kB / 437.3 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2766, allocations: 8.234 kB / 437.3 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.2768, allocations: 47.91 kB / 437.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2768, allocations: 4 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.2769, allocations: 15.89 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.2769, allocations: 12 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001235/0.277, allocations: 133.7 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.2772, allocations: 93.94 kB / 437.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.721e-05/0.2772, allocations: 12.66 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2772, allocations: 4 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2772, allocations: 96 / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2772, allocations: 3.938 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.2775, allocations: 168.7 kB / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2775, allocations: 0 / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.2776, allocations: 27.98 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.301e-05/0.2776, allocations: 7.984 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.2777, allocations: 7.938 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.2777, allocations: 8 kB / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2777, allocations: 3.938 kB / 437.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005369/0.2782, allocations: 363.6 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.412e-05/0.2782, allocations: 15.88 kB / 438.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.2783, allocations: 7.938 kB / 438.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.2784, allocations: 11.98 kB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.2784, allocations: 3.984 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.2784, allocations: 8 kB / 438.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.398e-05/0.2785, allocations: 99.33 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2785, allocations: 0 / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.2788, allocations: 24 kB / 438.4 MB, free: 14.87 MB / 350.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 (14): * Single equations (assignments): 14 * 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.0008515/0.2797, allocations: 0.9116 MB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.28, allocations: 120 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.28, allocations: 0 / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.2801, allocations: 31.91 kB / 439.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004848/0.2806, allocations: 44 kB / 439.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.2831, allocations: 2.039 MB / 441.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.2832, allocations: 105.5 kB / 441.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.385e-05/0.2833, allocations: 12.64 kB / 441.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.716e-05/0.2834, allocations: 35.38 kB / 441.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2834, allocations: 4 kB / 441.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03097/0.3143, allocations: 3.308 MB / 445 MB, free: 8.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.39, allocations: 7.234 kB / 445 MB, free: 8.227 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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: 14.01089684991166]