Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.00142/0.00142, allocations: 114 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.001715/0.001715, allocations: 213.3 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.546/1.546, allocations: 230.5 MB / 257.4 MB, free: 7.969 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 67.91 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3007, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.0037/0.3044, allocations: 2.051 MB / 433.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.3057, allocations: 0.5687 MB / 433.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.3058, allocations: 4 kB / 433.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.306, allocations: 19.8 kB / 433.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.3062, allocations: 31.72 kB / 433.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003648/0.3066, allocations: 55.88 kB / 433.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.3068, allocations: 123.6 kB / 434 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.3069, allocations: 49.5 kB / 434.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.3071, allocations: 51.78 kB / 434.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.3072, allocations: 59.7 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.3072, allocations: 12 kB / 434.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.601e-05/0.3073, allocations: 12 kB / 434.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.406e-05/0.3073, allocations: 27.91 kB / 434.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.57e-05/0.3074, allocations: 59.67 kB / 434.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.3077, allocations: 127.9 kB / 434.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3077, allocations: 0 / 434.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3077, allocations: 0 / 434.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.3077, allocations: 0 / 434.4 MB, free: 3.426 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.0008108/0.3085, allocations: 357.8 kB / 434.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.3086, allocations: 19.97 kB / 434.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.926e-05/0.3086, allocations: 42.75 kB / 434.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.785e-05/0.3087, allocations: 16.84 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.3089, allocations: 158.2 kB / 435 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3089, allocations: 8.375 kB / 435 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.309, allocations: 16.38 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005737/0.3095, allocations: 238.7 kB / 435.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.3096, allocations: 4 kB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.3096, allocations: 4 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.3096, allocations: 4 kB / 435.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.3098, allocations: 87.86 kB / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000813/0.3107, allocations: 0.5349 MB / 435.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004167/0.3111, allocations: 143.6 kB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.3113, allocations: 74.81 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.3113, allocations: 3.938 kB / 436.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3113, allocations: 38.56 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.206e-06/0.3113, allocations: 3.984 kB / 436.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006118/0.3119, allocations: 181.4 kB / 436.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.312, allocations: 114.8 kB / 436.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.3122, allocations: 137.4 kB / 436.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.3122, allocations: 29.7 kB / 436.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.792e-05/0.3123, allocations: 111.9 kB / 436.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-05/0.3123, allocations: 27.84 kB / 436.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.3124, allocations: 33.7 kB / 436.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3126, allocations: 326.8 kB / 437.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.3127, allocations: 35.97 kB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.3129, allocations: 137.2 kB / 437.2 MB, free: 288 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003216/0.3132, allocations: 185.5 kB / 437.4 MB, free: 52 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3132, allocations: 3.938 kB / 437.4 MB, free: 48 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004125/0.3137, allocations: 201.1 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.3137, allocations: 8.469 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3137, allocations: 8 kB / 437.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3137, allocations: 4 kB / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.3139, allocations: 47.91 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.3139, allocations: 8 kB / 437.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.314, allocations: 19.88 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.314, allocations: 12 kB / 437.7 MB, free: 15.74 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.000128/0.3141, allocations: 133.7 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.3143, allocations: 85.95 kB / 437.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.717e-05/0.3144, allocations: 20.72 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.3144, allocations: 8.078 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3144, allocations: 3.938 kB / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3144, allocations: 0 / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003123/0.3147, allocations: 180.6 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3147, allocations: 4 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.3149, allocations: 35.98 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-05/0.3149, allocations: 4 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.3149, allocations: 0 / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.3149, allocations: 11.92 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3149, allocations: 4 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005754/0.3155, allocations: 378 kB / 438.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.85e-05/0.3155, allocations: 15.84 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.3156, allocations: 8.062 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3157, allocations: 7.984 kB / 438.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.3158, allocations: 11.92 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.3158, allocations: 8 kB / 438.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.3159, allocations: 103 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3159, allocations: 0 / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.3162, allocations: 24 kB / 438.8 MB, free: 14.64 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.0009397/0.3172, allocations: 0.9193 MB / 439.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.3175, allocations: 115.8 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3175, allocations: 0 / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.692e-05/0.3176, allocations: 28.39 kB / 439.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005616/0.3182, allocations: 56.88 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.321, allocations: 2.064 MB / 441.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.3214, allocations: 0.7161 MB / 442.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.59e-05/0.3214, allocations: 17.08 kB / 442.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.336e-05/0.3215, allocations: 31.44 kB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3215, allocations: 0 / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03807/0.3596, allocations: 3.003 MB / 445.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.79, allocations: 4 kB / 445.7 MB, free: 7.57 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.32962482701987]