Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001429/0.001429, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00147/0.00147, allocations: 206.1 kB / 24.52 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.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 47.92 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2883, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003668/0.292, allocations: 2.057 MB / 434 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.293, allocations: 0.5687 MB / 434.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2932, allocations: 7.938 kB / 434.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.2933, allocations: 19.8 kB / 434.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.2934, allocations: 31.72 kB / 434.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.2937, allocations: 51.88 kB / 434.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.2939, allocations: 123.6 kB / 434.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.294, allocations: 45.55 kB / 434.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.212e-05/0.2941, allocations: 47.8 kB / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.641e-05/0.2942, allocations: 55.77 kB / 434.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.2942, allocations: 12 kB / 434.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.089e-05/0.2942, allocations: 8 kB / 434.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.773e-05/0.2943, allocations: 35.84 kB / 435 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.8e-05/0.2943, allocations: 59.67 kB / 435 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.2946, allocations: 127.8 kB / 435.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2946, allocations: 0 / 435.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2946, allocations: 0 / 435.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.2946, allocations: 0 / 435.1 MB, free: 3.625 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006136/0.2952, allocations: 365.8 kB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2952, allocations: 8.031 kB / 435.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.938e-05/0.2952, allocations: 8.188 kB / 435.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.549e-05/0.2953, allocations: 46.73 kB / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.2953, allocations: 16.84 kB / 435.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.2956, allocations: 154.2 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.2956, allocations: 8.375 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.2956, allocations: 16.38 kB / 435.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.2961, allocations: 245.5 kB / 436 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.2962, allocations: 7.938 kB / 436 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2962, allocations: 4 kB / 436 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2962, allocations: 4 kB / 436 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.2964, allocations: 87.88 kB / 436.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006343/0.2971, allocations: 0.5271 MB / 436.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.2974, allocations: 151.8 kB / 436.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.2976, allocations: 74.62 kB / 436.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.2976, allocations: 0 / 436.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.2976, allocations: 50.48 kB / 436.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.2976, allocations: 0 / 436.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005338/0.2982, allocations: 181.4 kB / 437.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.2983, allocations: 110.8 kB / 437.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2984, allocations: 130.2 kB / 437.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.2984, allocations: 33.83 kB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.2985, allocations: 111.9 kB / 437.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/0.2985, allocations: 23.84 kB / 437.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.2986, allocations: 33.72 kB / 437.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2987, allocations: 326.8 kB / 437.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.2988, allocations: 35.97 kB / 437.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.299, allocations: 140.2 kB / 438 MB, free: 480 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.2993, allocations: 189.5 kB / 438.2 MB, free: 240 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2993, allocations: 0 / 438.2 MB, free: 240 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003752/0.2997, allocations: 197.2 kB / 438.4 MB, free: 36 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2997, allocations: 11.98 kB / 438.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.2997, allocations: 480 / 438.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.2997, allocations: 15.94 kB / 438.4 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.2999, allocations: 35.98 kB / 438.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.2999, allocations: 11.92 kB / 438.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.3, allocations: 23.89 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.3, allocations: 8 kB / 438.5 MB, free: 15.93 MB / 350.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.0001185/0.3002, allocations: 134.2 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.3003, allocations: 89.94 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.918e-05/0.3004, allocations: 20.81 kB / 438.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3004, allocations: 7.938 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3004, allocations: 0 / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3004, allocations: 0 / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.3007, allocations: 184.6 kB / 438.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3007, allocations: 4 kB / 438.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.3009, allocations: 31.97 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3009, allocations: 4 kB / 438.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3009, allocations: 4 kB / 438.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3009, allocations: 4 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3009, allocations: 4 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006052/0.3015, allocations: 379.4 kB / 439.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.217e-05/0.3015, allocations: 16.08 kB / 439.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.3015, allocations: 4 kB / 439.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.3017, allocations: 16.05 kB / 439.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.3017, allocations: 7.984 kB / 439.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.3017, allocations: 4 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.61e-05/0.3018, allocations: 103.2 kB / 439.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3018, allocations: 0 / 439.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.3021, allocations: 24 kB / 439.5 MB, free: 14.83 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 (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.0009007/0.303, allocations: 0.9184 MB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.3034, allocations: 119.9 kB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3034, allocations: 0 / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.3035, allocations: 35.91 kB / 440.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.304, allocations: 51.94 kB / 440.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.3065, allocations: 2.062 MB / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3069, allocations: 0.7123 MB / 443.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.045e-05/0.3069, allocations: 17.02 kB / 443.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.137e-05/0.307, allocations: 35.42 kB / 443.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.307, allocations: 0 / 443.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.3349, allocations: 3.029 MB / 446.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.22, allocations: 10.58 kB / 446.5 MB, free: 7.773 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.744655754009727]