Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002162/0.002162, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003453/0.003453, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.645/1.645, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 47.92 kB / 377.8 MB, free: 3.242 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3289, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003864/0.3328, allocations: 2.049 MB / 433.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.3339, allocations: 0.5414 MB / 433.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.334, allocations: 7.938 kB / 433.7 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.3342, allocations: 11.86 kB / 433.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.366e-05/0.3342, allocations: 27.72 kB / 433.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.3345, allocations: 59.88 kB / 433.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.3347, allocations: 119.6 kB / 433.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.3349, allocations: 45.61 kB / 434 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.012e-05/0.335, allocations: 55.67 kB / 434 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.542e-05/0.3351, allocations: 55.75 kB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.56e-05/0.3351, allocations: 12 kB / 434.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.161e-05/0.3351, allocations: 8 kB / 434.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.203e-05/0.3352, allocations: 23.92 kB / 434.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.3352, allocations: 59.67 kB / 434.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.3354, allocations: 127.9 kB / 434.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3355, allocations: 0 / 434.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3355, allocations: 4 kB / 434.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3355, allocations: 0 / 434.3 MB, free: 3.652 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.0006014/0.3361, allocations: 349.8 kB / 434.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3361, allocations: 12.03 kB / 434.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.768e-05/0.3362, allocations: 50.67 kB / 434.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.3362, allocations: 12.84 kB / 434.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.3364, allocations: 142.3 kB / 434.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.3365, allocations: 12.38 kB / 434.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.3365, allocations: 16.33 kB / 434.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.337, allocations: 250.5 kB / 435.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.337, allocations: 3.938 kB / 435.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.337, allocations: 4 kB / 435.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.337, allocations: 4 kB / 435.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.3373, allocations: 87.88 kB / 435.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006903/0.338, allocations: 0.5349 MB / 435.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.3383, allocations: 143.9 kB / 435.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3385, allocations: 74.56 kB / 436 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.3385, allocations: 0 / 436 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.3385, allocations: 38.56 kB / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.3385, allocations: 0 / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005369/0.3391, allocations: 181.7 kB / 436.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/0.3392, allocations: 106.9 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.3393, allocations: 137 kB / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.3393, allocations: 25.7 kB / 436.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.712e-05/0.3394, allocations: 115.8 kB / 436.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.3394, allocations: 31.91 kB / 436.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/0.3395, allocations: 33.72 kB / 436.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3396, allocations: 322.8 kB / 437 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.3397, allocations: 39.91 kB / 437 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.3399, allocations: 128.8 kB / 437.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.3402, allocations: 176.7 kB / 437.3 MB, free: 332 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3402, allocations: 0 / 437.3 MB, free: 332 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003869/0.3406, allocations: 189.2 kB / 437.5 MB, free: 136 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3407, allocations: 8 kB / 437.5 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3407, allocations: 7.938 kB / 437.5 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.3407, allocations: 7.984 kB / 437.5 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.3409, allocations: 47.92 kB / 437.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.3409, allocations: 7.938 kB / 437.6 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.341, allocations: 20.28 kB / 437.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.341, allocations: 16 kB / 437.6 MB, free: 20 kB / 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.0001275/0.3411, allocations: 125.8 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.3413, allocations: 85.58 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.3413, allocations: 24.64 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.3413, allocations: 3.938 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.3413, allocations: 0 / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3414, allocations: 4 kB / 437.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.3416, allocations: 176.6 kB / 438 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3416, allocations: 4 kB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.3418, allocations: 35.92 kB / 438 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3418, allocations: 0 / 438 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.3418, allocations: 3.938 kB / 438 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3418, allocations: 4 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3418, allocations: 0 / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005753/0.3424, allocations: 379.5 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.3424, allocations: 11.89 kB / 438.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.3424, allocations: 3.938 kB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.3426, allocations: 12.08 kB / 438.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.3426, allocations: 7.938 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.3426, allocations: 4 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.771e-05/0.3427, allocations: 107.3 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3427, allocations: 0 / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.3431, allocations: 27.95 kB / 438.6 MB, free: 14.94 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.0008786/0.3439, allocations: 0.9118 MB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003379/0.3443, allocations: 115.8 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3443, allocations: 0.875 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.687e-05/0.3444, allocations: 27.98 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.3449, allocations: 53.55 kB / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.3474, allocations: 2.029 MB / 441.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.3478, allocations: 0.7084 MB / 442.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.726e-05/0.3478, allocations: 12.66 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.3479, allocations: 35.42 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3479, allocations: 0 / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/0.3817, allocations: 2.959 MB / 445.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.04, allocations: 0 / 445.4 MB, free: 8.031 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.817728406051174]