Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 187.9 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 43.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3197, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003927/0.3236, allocations: 2.072 MB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.3248, allocations: 0.5804 MB / 425.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.3249, allocations: 3.938 kB / 425.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.325, allocations: 19.8 kB / 425.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.3252, allocations: 35.72 kB / 425.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.3255, allocations: 71.8 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00022/0.3257, allocations: 127.6 kB / 425.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.3259, allocations: 38.05 kB / 425.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.27e-05/0.326, allocations: 55.78 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.3261, allocations: 63.7 kB / 425.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.3261, allocations: 8 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.295e-05/0.3261, allocations: 12 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.3262, allocations: 35.91 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.515e-05/0.3263, allocations: 71.53 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.3265, allocations: 147.7 kB / 425.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3265, allocations: 0 / 425.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3265, allocations: 0 / 425.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.3265, allocations: 0 / 425.9 MB, free: 11.25 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007113/0.3273, allocations: 385.5 kB / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3273, allocations: 8.031 kB / 426.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.206e-05/0.3274, allocations: 46.73 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.164e-05/0.3274, allocations: 16.84 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.3277, allocations: 158.3 kB / 426.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.3277, allocations: 8.375 kB / 426.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.899e-05/0.3278, allocations: 20.38 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.3283, allocations: 266.5 kB / 426.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.3283, allocations: 0 / 426.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.3283, allocations: 4 kB / 426.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3283, allocations: 8 kB / 426.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002578/0.3286, allocations: 87.39 kB / 426.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000701/0.3293, allocations: 0.5427 MB / 427.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.3297, allocations: 139.7 kB / 427.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.3298, allocations: 66.83 kB / 427.7 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.3299, allocations: 15.92 kB / 427.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.3299, allocations: 42.55 kB / 427.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.3299, allocations: 0 / 427.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005342/0.3304, allocations: 189.3 kB / 427.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.3305, allocations: 118.9 kB / 428 MB, free: 8.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.3307, allocations: 154.2 kB / 428.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3307, allocations: 29.7 kB / 428.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.3308, allocations: 116.5 kB / 428.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.3308, allocations: 23.8 kB / 428.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.3309, allocations: 41.66 kB / 428.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.331, allocations: 322.8 kB / 428.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.3311, allocations: 39.97 kB / 428.7 MB, free: 8.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.3313, allocations: 137 kB / 428.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.3316, allocations: 193.5 kB / 429.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3316, allocations: 3.938 kB / 429.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003778/0.332, allocations: 193.6 kB / 429.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.332, allocations: 8 kB / 429.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.332, allocations: 0 / 429.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.332, allocations: 8 kB / 429.3 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.3322, allocations: 43.91 kB / 429.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.3322, allocations: 4 kB / 429.3 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.3323, allocations: 27.88 kB / 429.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.3323, allocations: 8 kB / 429.3 MB, free: 7.473 MB / 334.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.0001275/0.3325, allocations: 137.8 kB / 429.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.3326, allocations: 97.52 kB / 429.6 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.297e-05/0.3327, allocations: 16.72 kB / 429.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3327, allocations: 4 kB / 429.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3327, allocations: 0 / 429.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3327, allocations: 0 / 429.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003174/0.3331, allocations: 201 kB / 429.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3331, allocations: 0 / 429.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.3332, allocations: 31.98 kB / 429.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.3332, allocations: 3.984 kB / 429.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.3333, allocations: 8 kB / 429.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3333, allocations: 11.88 kB / 429.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3333, allocations: 0 / 429.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005646/0.3338, allocations: 383.4 kB / 430.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.584e-05/0.3339, allocations: 27.91 kB / 430.3 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.3339, allocations: 4 kB / 430.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.3341, allocations: 8 kB / 430.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.164e-05/0.3341, allocations: 7.922 kB / 430.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.3341, allocations: 4 kB / 430.3 MB, free: 6.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.875e-05/0.3342, allocations: 124.1 kB / 430.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3342, allocations: 0 / 430.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.3345, allocations: 27.94 kB / 430.4 MB, free: 6.32 MB / 334.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.0008665/0.3354, allocations: 0.9161 MB / 431.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.3357, allocations: 127.7 kB / 431.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3358, allocations: 0 / 431.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.404e-05/0.3358, allocations: 25.34 kB / 431.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.3364, allocations: 68 kB / 431.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.339, allocations: 2.108 MB / 433.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.3393, allocations: 0.72 MB / 434.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.116e-05/0.3394, allocations: 17.42 kB / 434.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.133e-05/0.3395, allocations: 35.42 kB / 434.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3395, allocations: 4.281 kB / 434.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03613/0.3756, allocations: 3.159 MB / 437.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.67, allocations: 3.938 kB / 437.6 MB, free: 15.08 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.16930965310894]