Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.00149/0.00149, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001582/0.001582, allocations: 185 kB / 23.72 MB, free: 4.719 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.55/1.55, 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 47.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3293, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003398/0.3327, allocations: 2.037 MB / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009752/0.3337, allocations: 0.5065 MB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.95e-05/0.3338, allocations: 3.938 kB / 425.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.3339, allocations: 23.8 kB / 425.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.17e-05/0.334, allocations: 19.78 kB / 425.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.3343, allocations: 63.86 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.3345, allocations: 115.6 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3346, allocations: 37.61 kB / 425.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.166e-05/0.3347, allocations: 55.73 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.3348, allocations: 59.75 kB / 425.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.3348, allocations: 8 kB / 425.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.348e-05/0.3349, allocations: 12 kB / 425.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.3349, allocations: 23.92 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.86e-05/0.335, allocations: 59.67 kB / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.3352, allocations: 123.9 kB / 425.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3352, allocations: 0 / 425.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3352, allocations: 4 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.3352, allocations: 0 / 425.8 MB, free: 11.41 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.0006029/0.3358, allocations: 353.8 kB / 426.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3358, allocations: 8.031 kB / 426.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.424e-05/0.3359, allocations: 50.67 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.997e-05/0.3359, allocations: 20.84 kB / 426.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.3362, allocations: 142.3 kB / 426.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.3362, allocations: 12.38 kB / 426.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.3363, allocations: 16.31 kB / 426.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/0.3368, allocations: 234.7 kB / 426.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.3368, allocations: 11.89 kB / 426.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.3368, allocations: 7.938 kB / 426.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.3368, allocations: 4 kB / 426.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/0.3371, allocations: 79.88 kB / 426.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006705/0.3377, allocations: 0.5349 MB / 427.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002884/0.338, allocations: 139.9 kB / 427.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3382, allocations: 78.56 kB / 427.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.3382, allocations: 4 kB / 427.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.3383, allocations: 38.56 kB / 427.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.3383, allocations: 0 / 427.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005212/0.3388, allocations: 173.4 kB / 427.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.907e-05/0.3389, allocations: 114.8 kB / 427.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.339, allocations: 126.2 kB / 427.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.339, allocations: 37.7 kB / 427.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.391e-05/0.3391, allocations: 108.1 kB / 428 MB, free: 8.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.3391, allocations: 31.73 kB / 428 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.3392, allocations: 33.72 kB / 428.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3393, allocations: 318.8 kB / 428.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.3395, allocations: 39.91 kB / 428.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.3396, allocations: 128.8 kB / 428.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.34, allocations: 176.7 kB / 428.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.34, allocations: 4 kB / 428.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003762/0.3403, allocations: 185.3 kB / 428.9 MB, free: 7.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3404, allocations: 4 kB / 428.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.3404, allocations: 7.938 kB / 428.9 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.3404, allocations: 4.438 kB / 428.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.3406, allocations: 51.91 kB / 429 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.3406, allocations: 12.31 kB / 429 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3407, allocations: 23.88 kB / 429 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.3407, allocations: 8 kB / 429 MB, free: 7.789 MB / 334.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.0001343/0.3408, allocations: 133.7 kB / 429.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.341, allocations: 85.47 kB / 429.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.726e-05/0.341, allocations: 24.64 kB / 429.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.341, allocations: 4 kB / 429.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.341, allocations: 4 kB / 429.3 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.341, allocations: 0 / 429.3 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.3413, allocations: 172.7 kB / 429.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3413, allocations: 4 kB / 429.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.3415, allocations: 35.92 kB / 429.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3415, allocations: 0 / 429.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.3415, allocations: 7.938 kB / 429.5 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3415, allocations: 0 / 429.5 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3415, allocations: 4 kB / 429.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005462/0.3421, allocations: 375.4 kB / 429.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.461e-05/0.3421, allocations: 16.16 kB / 429.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.3421, allocations: 7.938 kB / 429.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.3422, allocations: 7.984 kB / 429.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.035e-05/0.3423, allocations: 12.05 kB / 429.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.3423, allocations: 4 kB / 429.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.988e-05/0.3424, allocations: 107 kB / 430 MB, free: 6.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3424, allocations: 0 / 430 MB, free: 6.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.3427, allocations: 27.95 kB / 430 MB, free: 6.699 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 (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.0009013/0.3436, allocations: 0.903 MB / 430.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003258/0.3439, allocations: 120.6 kB / 431.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3439, allocations: 0 / 431.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.391e-05/0.344, allocations: 23.98 kB / 431.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.3445, allocations: 52.31 kB / 431.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.347, allocations: 2.039 MB / 433.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3474, allocations: 0.7162 MB / 433.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.462e-05/0.3474, allocations: 4.656 kB / 433.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.617e-05/0.3475, allocations: 39.42 kB / 433.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3475, allocations: 0 / 433.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03141/0.3789, allocations: 2.931 MB / 436.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.52, allocations: 22.48 kB / 436.9 MB, free: 15.8 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 14.118271803949028]