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.001846/0.001846, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002054/0.002054, allocations: 210.6 kB / 23.73 MB, free: 4.523 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.61/1.61, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001541/0.001541, allocations: 55.91 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2863, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003366/0.2897, allocations: 1.981 MB / 433 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.2907, allocations: 0.5103 MB / 433.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.2908, allocations: 7.938 kB / 433.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.2909, allocations: 15.8 kB / 433.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.034e-05/0.291, allocations: 23.8 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.2913, allocations: 55.81 kB / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000197/0.2915, allocations: 127.5 kB / 433.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.2916, allocations: 41.62 kB / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.922e-05/0.2917, allocations: 55.72 kB / 433.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.202e-05/0.2918, allocations: 55.7 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.2918, allocations: 12 kB / 433.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.236e-05/0.2919, allocations: 8 kB / 433.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.596e-05/0.2919, allocations: 27.91 kB / 434 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.21e-05/0.292, allocations: 47.73 kB / 434 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.2922, allocations: 129.1 kB / 434.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2922, allocations: 0 / 434.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2922, allocations: 0 / 434.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2922, allocations: 0 / 434.1 MB, free: 3.559 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.0006319/0.2928, allocations: 357.8 kB / 434.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2929, allocations: 8.031 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.182e-05/0.2929, allocations: 50.67 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.293, allocations: 20.84 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.2932, allocations: 138.3 kB / 434.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.2932, allocations: 16.31 kB / 434.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.2933, allocations: 16.33 kB / 434.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004908/0.2938, allocations: 243.5 kB / 435 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2938, allocations: 0 / 435 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2938, allocations: 4 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/0.2938, allocations: 4 kB / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.2941, allocations: 87.86 kB / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/0.2947, allocations: 0.5193 MB / 435.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.295, allocations: 135.9 kB / 435.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.2951, allocations: 74.56 kB / 435.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.2951, allocations: 4 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.2952, allocations: 30.56 kB / 435.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.2952, allocations: 0 / 435.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005056/0.2957, allocations: 189.6 kB / 436 MB, free: 1.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.41e-05/0.2958, allocations: 110.9 kB / 436.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.2959, allocations: 134.1 kB / 436.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.2959, allocations: 29.7 kB / 436.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.064e-05/0.296, allocations: 115.7 kB / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.296, allocations: 23.84 kB / 436.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.296, allocations: 37.66 kB / 436.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.2962, allocations: 322.8 kB / 436.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.2963, allocations: 40.09 kB / 436.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.2965, allocations: 131.4 kB / 436.9 MB, free: 472 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.2968, allocations: 180.8 kB / 437.1 MB, free: 244 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2968, allocations: 4 kB / 437.1 MB, free: 240 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003721/0.2972, allocations: 185.3 kB / 437.3 MB, free: 48 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.2972, allocations: 4 kB / 437.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.2972, allocations: 7.938 kB / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.2972, allocations: 4 kB / 437.3 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.2974, allocations: 43.91 kB / 437.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.2974, allocations: 12.38 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.2975, allocations: 27.88 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.2975, allocations: 8 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.0001345/0.2977, allocations: 133.7 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.2978, allocations: 73.64 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.2978, allocations: 24.64 kB / 437.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.2978, allocations: 4 kB / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2978, allocations: 0 / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2979, allocations: 0 / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.2981, allocations: 164.7 kB / 437.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2981, allocations: 8 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.2983, allocations: 35.92 kB / 437.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.2983, allocations: 4 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.2983, allocations: 3.938 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.2983, allocations: 3.984 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/0.2983, allocations: 4 kB / 437.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005214/0.2988, allocations: 378.5 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.285e-05/0.2989, allocations: 15.91 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.2989, allocations: 7.938 kB / 438.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.299, allocations: 16.02 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.299, allocations: 7.938 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.299, allocations: 4 kB / 438.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.89e-05/0.2991, allocations: 106.2 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2991, allocations: 0 / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.2994, 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.0007882/0.3002, allocations: 0.9077 MB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000319/0.3005, allocations: 115.8 kB / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3005, allocations: 4 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.601e-05/0.3006, allocations: 24.86 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.3011, allocations: 52 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.002499/0.3036, allocations: 2.033 MB / 441.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.3037, allocations: 101.5 kB / 441.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.089e-05/0.3038, allocations: 8.656 kB / 441.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.367e-05/0.3039, allocations: 39.42 kB / 441.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3039, allocations: 0 / 441.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.3341, allocations: 3.374 MB / 445.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.16, allocations: 7.922 kB / 445.1 MB, free: 8.168 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.962850730982609]