Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.0008924/0.0008924, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0009446/0.0009446, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8802/0.8802, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.503e-05, allocations: 2.984 kB / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002584/0.002609, allocations: 1.982 MB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007845/0.003394, allocations: 0.5103 MB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.003499, allocations: 11.88 kB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.003604, allocations: 15.8 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.241e-05/0.003666, allocations: 27.78 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.003962, allocations: 63.73 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000149/0.004111, allocations: 119.5 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.004256, allocations: 49.31 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.00436, allocations: 71.81 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.639e-05/0.004427, allocations: 43.81 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.004454, allocations: 8 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.337e-05/0.004467, allocations: 12 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.004496, allocations: 27.91 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.939e-05/0.004535, allocations: 35.92 kB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.004702, allocations: 131.5 kB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.004704, allocations: 0 / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.004705, allocations: 0 / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.00471, allocations: 0 / 327.6 MB, free: 12.81 MB / 298.7 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.0004286/0.005138, allocations: 345.8 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.005182, allocations: 11.98 kB / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/0.005223, allocations: 50.73 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.005254, allocations: 12.84 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.005473, allocations: 153.6 kB / 328.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.005485, allocations: 8.375 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.005511, allocations: 16.33 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.005868, allocations: 231.2 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.005881, allocations: 192 / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.005895, allocations: 8.125 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.005902, allocations: 8 kB / 328.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001468/0.006049, allocations: 83.88 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004977/0.006547, allocations: 0.5116 MB / 329 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.006735, allocations: 135.9 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.136e-05/0.006826, allocations: 70.62 kB / 329.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.00685, allocations: 11.94 kB / 329.2 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.006875, allocations: 38.56 kB / 329.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.006876, allocations: 3.938 kB / 329.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003502/0.007226, allocations: 177.4 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.007289, allocations: 114.8 kB / 329.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.77e-05/0.007366, allocations: 128.9 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.007378, allocations: 29.7 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.007435, allocations: 120 kB / 329.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.007453, allocations: 27.91 kB / 329.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.007483, allocations: 21.72 kB / 329.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.007562, allocations: 322.8 kB / 330.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.66e-05/0.007619, allocations: 31.97 kB / 330.2 MB, free: 9.926 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.061e-05/0.00769, allocations: 78.78 kB / 330.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.007816, allocations: 110.8 kB / 330.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.007818, allocations: 0 / 330.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001668/0.007985, allocations: 137.6 kB / 330.5 MB, free: 9.551 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.007997, allocations: 12 kB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.008003, allocations: 240 / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.008016, allocations: 4 kB / 330.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.531e-05/0.008112, allocations: 27.92 kB / 330.6 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.008123, allocations: 7.938 kB / 330.6 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.408e-05/0.008167, allocations: 15.94 kB / 330.6 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.008175, allocations: 7.984 kB / 330.6 MB, free: 9.477 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 7.194e-05/0.008247, allocations: 125.8 kB / 330.7 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-05/0.008336, allocations: 85.58 kB / 330.8 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.104e-05/0.008367, allocations: 16.78 kB / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.008371, allocations: 4 kB / 330.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.008376, allocations: 3.938 kB / 330.8 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.00838, allocations: 3.984 kB / 330.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.008554, allocations: 157.2 kB / 331 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.008556, allocations: 0 / 331 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.568e-05/0.008652, allocations: 47.84 kB / 331 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.008654, allocations: 0 / 331 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.008666, allocations: 4 kB / 331.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.008668, allocations: 3.938 kB / 331.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.00867, allocations: 7.938 kB / 331.1 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.009004, allocations: 375 kB / 331.4 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.009023, allocations: 15.88 kB / 331.4 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.009038, allocations: 8 kB / 331.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.938e-05/0.009107, allocations: 7.984 kB / 331.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.009147, allocations: 7.938 kB / 331.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.009153, allocations: 8 kB / 331.5 MB, free: 8.543 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.377e-05/0.009197, allocations: 101 kB / 331.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009197, allocations: 0 / 331.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002064/0.009403, allocations: 20 kB / 331.6 MB, free: 8.426 MB / 298.7 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.0005099/0.009913, allocations: 0.896 MB / 332.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002017/0.01011, allocations: 100.1 kB / 332.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01012, allocations: 4 kB / 332.6 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.983e-05/0.01017, allocations: 27.97 kB / 332.6 MB, free: 7.367 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.01057, allocations: 63.86 kB / 332.7 MB, free: 7.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.01205, allocations: 1.807 MB / 334.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.151e-05/0.01212, allocations: 93.31 kB / 334.6 MB, free: 5.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.691e-05/0.01215, allocations: 12.48 kB / 334.6 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.01221, allocations: 40.48 kB / 334.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01221, allocations: 384 / 334.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.03123, allocations: 3.383 MB / 338 MB, free: 1.988 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/6.771, allocations: 7.156 kB / 338 MB, free: 1.984 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.428701030090451]