Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001445/0.001445, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 64.14 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2969, allocations: 53.41 MB / 431.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003964/0.3009, allocations: 2.043 MB / 433.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.3022, allocations: 0.5453 MB / 433.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.3024, allocations: 8 kB / 433.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.3025, allocations: 15.8 kB / 433.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.947e-05/0.3026, allocations: 23.73 kB / 433.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004055/0.303, allocations: 59.25 kB / 433.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002232/0.3032, allocations: 123.6 kB / 434 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.3034, allocations: 41.61 kB / 434 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.812e-05/0.3035, allocations: 51.78 kB / 434.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.311e-05/0.3036, allocations: 51.77 kB / 434.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.3036, allocations: 12 kB / 434.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.193e-05/0.3036, allocations: 12 kB / 434.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.3037, allocations: 27.86 kB / 434.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.346e-05/0.3037, allocations: 59.72 kB / 434.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.304, allocations: 127.8 kB / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.304, allocations: 0 / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.304, allocations: 0 / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.304, allocations: 3.938 kB / 434.4 MB, free: 3.613 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.000626/0.3046, allocations: 349.8 kB / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3046, allocations: 16.03 kB / 434.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.433e-05/0.3047, allocations: 46.73 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.3047, allocations: 16.78 kB / 434.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.305, allocations: 150.3 kB / 434.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.305, allocations: 4.375 kB / 434.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.305, allocations: 20.33 kB / 434.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005041/0.3055, allocations: 239.5 kB / 435.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3055, allocations: 0 / 435.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.3056, allocations: 4 kB / 435.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3056, allocations: 4 kB / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.3058, allocations: 95.86 kB / 435.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007037/0.3065, allocations: 0.531 MB / 435.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.3068, allocations: 140 kB / 436 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.307, allocations: 74.52 kB / 436 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.307, allocations: 4 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.3071, allocations: 46.5 kB / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.3071, allocations: 0 / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005331/0.3076, allocations: 177.4 kB / 436.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.328e-05/0.3077, allocations: 110.9 kB / 436.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.3078, allocations: 132.8 kB / 436.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.3078, allocations: 25.7 kB / 436.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.241e-05/0.3079, allocations: 115.8 kB / 436.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/0.3079, allocations: 31.78 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.016e-05/0.308, allocations: 33.7 kB / 436.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3081, allocations: 323.2 kB / 437 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.3082, allocations: 35.97 kB / 437 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.3084, allocations: 131.5 kB / 437.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.3087, allocations: 176.7 kB / 437.3 MB, free: 292 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3087, allocations: 3.938 kB / 437.3 MB, free: 288 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003719/0.3091, allocations: 193.2 kB / 437.5 MB, free: 88 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3091, allocations: 8 kB / 437.5 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3091, allocations: 8.375 kB / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.3091, allocations: 8 kB / 437.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.3093, allocations: 43.92 kB / 437.6 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.3093, allocations: 15.91 kB / 437.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.3094, allocations: 15.94 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.3095, allocations: 12 kB / 437.6 MB, free: 15.97 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.0001098/0.3096, allocations: 129.7 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.3097, allocations: 89.52 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.3098, allocations: 24.66 kB / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3098, allocations: 0 / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3098, allocations: 0 / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3098, allocations: 4 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.31, allocations: 172.6 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3101, allocations: 0 / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.3102, allocations: 35.92 kB / 438.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3102, allocations: 3.984 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.3102, allocations: 7.938 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3102, allocations: 4 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3102, allocations: 4 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005217/0.3108, allocations: 363.6 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.3108, allocations: 11.89 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.3108, allocations: 3.938 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.3109, allocations: 16.05 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.311, allocations: 11.92 kB / 438.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.311, allocations: 4 kB / 438.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.124e-05/0.3111, allocations: 99.27 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3111, allocations: 0 / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.3114, allocations: 27.95 kB / 438.6 MB, free: 14.9 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.0008199/0.3122, allocations: 0.9156 MB / 439.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003195/0.3125, allocations: 119.8 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3125, allocations: 0 / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.114e-05/0.3126, allocations: 27.97 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004916/0.3131, allocations: 63.61 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.3156, allocations: 2.027 MB / 441.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.316, allocations: 0.7162 MB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.905e-05/0.316, allocations: 12.58 kB / 442.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.825e-05/0.3161, allocations: 35.44 kB / 442.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3161, allocations: 0 / 442.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0332/0.3493, allocations: 2.942 MB / 445.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.46, allocations: 6.656 kB / 445.5 MB, free: 7.961 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.993822566932067]