Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001344/0.001344, 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.001432/0.001432, 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.471/1.471, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 47.92 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3251, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004299/0.3294, allocations: 2.03 MB / 424.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3305, allocations: 0.5337 MB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.3307, allocations: 4 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.3308, allocations: 19.8 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.331, allocations: 31.72 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.3313, allocations: 55.88 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.3315, allocations: 119.6 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.3317, allocations: 45.59 kB / 425.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.3318, allocations: 51.73 kB / 425.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.3319, allocations: 59.75 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.3319, allocations: 12 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.181e-05/0.3319, allocations: 8 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.765e-05/0.3319, allocations: 23.92 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.384e-05/0.332, allocations: 59.67 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.3323, allocations: 127.9 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3323, allocations: 4 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3323, allocations: 3.938 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.3323, allocations: 0 / 425.8 MB, free: 11.4 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.000704/0.333, allocations: 361.7 kB / 426.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.333, allocations: 8.031 kB / 426.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.914e-05/0.3331, allocations: 54.66 kB / 426.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.454e-05/0.3331, allocations: 16.84 kB / 426.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.3334, allocations: 153.2 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.3335, allocations: 12.38 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.3335, allocations: 12.38 kB / 426.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006468/0.3342, allocations: 262.6 kB / 426.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3342, allocations: 0 / 426.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.3342, allocations: 4 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.3342, allocations: 4 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003246/0.3345, allocations: 83.88 kB / 426.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008245/0.3354, allocations: 0.535 MB / 427.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004245/0.3358, allocations: 143.9 kB / 427.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.336, allocations: 74.58 kB / 427.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.336, allocations: 0 / 427.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.336, allocations: 34.56 kB / 427.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.032e-06/0.336, allocations: 0 / 427.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006204/0.3367, allocations: 193.3 kB / 427.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.689e-05/0.3367, allocations: 110.8 kB / 427.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.3369, allocations: 137.4 kB / 428 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.3369, allocations: 25.7 kB / 428 MB, free: 8.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.22e-05/0.337, allocations: 111.9 kB / 428.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.337, allocations: 31.84 kB / 428.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-05/0.3371, allocations: 29.84 kB / 428.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3372, allocations: 330.8 kB / 428.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.3374, allocations: 35.97 kB / 428.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.3376, allocations: 137.1 kB / 428.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.338, allocations: 189.5 kB / 428.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.338, allocations: 3.938 kB / 428.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003915/0.3383, allocations: 189.6 kB / 429 MB, free: 7.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3384, allocations: 8 kB / 429 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.3384, allocations: 4.234 kB / 429 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.3384, allocations: 7.984 kB / 429 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.3386, allocations: 55.8 kB / 429.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.3386, allocations: 8.469 kB / 429.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.3387, allocations: 23.88 kB / 429.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.3387, allocations: 15.98 kB / 429.1 MB, free: 7.699 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.0001101/0.3388, allocations: 133.7 kB / 429.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.339, allocations: 89.53 kB / 429.4 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.971e-05/0.339, allocations: 20.7 kB / 429.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.339, allocations: 4 kB / 429.4 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.339, allocations: 0 / 429.4 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.339, allocations: 0 / 429.4 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.3393, allocations: 184.6 kB / 429.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3393, allocations: 0 / 429.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.3395, allocations: 43.91 kB / 429.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3395, allocations: 0 / 429.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3395, allocations: 0 / 429.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.3395, allocations: 4 kB / 429.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3395, allocations: 0 / 429.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005581/0.3401, allocations: 387.4 kB / 430 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.3401, allocations: 11.92 kB / 430 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.3401, allocations: 7.938 kB / 430 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.3403, allocations: 7.984 kB / 430 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.3403, allocations: 4 kB / 430 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3403, allocations: 8 kB / 430 MB, free: 6.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.257e-05/0.3404, allocations: 99.33 kB / 430.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3404, allocations: 0 / 430.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.3407, allocations: 27.95 kB / 430.2 MB, free: 6.605 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.0009594/0.3417, allocations: 0.9196 MB / 431.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.342, allocations: 120.7 kB / 431.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.342, allocations: 64 / 431.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.3421, allocations: 28.08 kB / 431.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.3426, allocations: 51.88 kB / 431.3 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.3453, allocations: 2.065 MB / 433.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.3457, allocations: 0.7162 MB / 434 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.807e-05/0.3457, allocations: 9.078 kB / 434.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.866e-05/0.3458, allocations: 39.42 kB / 434.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3458, allocations: 3.938 kB / 434.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.3793, allocations: 2.99 MB / 437.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.61, allocations: 8 kB / 437.1 MB, free: 15.57 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 14.138398789102212]