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.001181/0.001181, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001429/0.001429, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9215/0.9215, allocations: 173.4 MB / 200.4 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] 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 1.733e-06/1.733e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.048e-05/2.221e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00249/0.002512, allocations: 1.972 MB / 320.4 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007447/0.003257, allocations: 482.6 kB / 320.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.435e-05/0.003351, allocations: 4 kB / 320.8 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.00346, allocations: 19.8 kB / 320.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.117e-05/0.003521, allocations: 27.72 kB / 320.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.003808, allocations: 59.75 kB / 321 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.003972, allocations: 123.5 kB / 321.1 MB, free: 3.688 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.004112, allocations: 49.58 kB / 321.1 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.601e-05/0.004208, allocations: 67.77 kB / 321.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.955e-05/0.004278, allocations: 43.88 kB / 321.2 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.004304, allocations: 16 kB / 321.2 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.385e-05/0.004318, allocations: 8 kB / 321.3 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.757e-05/0.004346, allocations: 23.91 kB / 321.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.06e-05/0.004386, allocations: 39.91 kB / 321.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.004547, allocations: 135.4 kB / 321.4 MB, free: 3.305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.004549, allocations: 0 / 321.4 MB, free: 3.305 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00455, allocations: 0 / 321.4 MB, free: 3.305 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.004555, allocations: 0 / 321.4 MB, free: 3.305 MB / 282.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.0004676/0.005023, allocations: 349.8 kB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.005063, allocations: 12.03 kB / 321.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.752e-05/0.0051, allocations: 50.73 kB / 321.9 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.00513, allocations: 12.84 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.005338, allocations: 149.6 kB / 322 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.005353, allocations: 8.375 kB / 322 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.005385, allocations: 12.38 kB / 322 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.005843, allocations: 243.1 kB / 322.3 MB, free: 2.398 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.005858, allocations: 192 / 322.3 MB, free: 2.398 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.005873, allocations: 12.12 kB / 322.3 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.005883, allocations: 4 kB / 322.3 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.006057, allocations: 79.88 kB / 322.4 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006729/0.00673, allocations: 0.504 MB / 322.9 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.006982, allocations: 147.8 kB / 323 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.007093, allocations: 70.62 kB / 323.1 MB, free: 1.488 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.007129, allocations: 4 kB / 323.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.007165, allocations: 42.5 kB / 323.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.853e-06/0.007166, allocations: 0 / 323.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003871/0.007553, allocations: 169.7 kB / 323.3 MB, free: 1.262 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.962e-05/0.007643, allocations: 122.9 kB / 323.4 MB, free: 1.117 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.007766, allocations: 141.5 kB / 323.5 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.007782, allocations: 25.7 kB / 323.6 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.274e-05/0.007865, allocations: 115.9 kB / 323.7 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.007891, allocations: 23.84 kB / 323.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/0.007933, allocations: 21.72 kB / 323.7 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.008051, allocations: 322.8 kB / 324 MB, free: 456 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.994e-05/0.00812, allocations: 27.97 kB / 324.1 MB, free: 428 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.82e-05/0.008209, allocations: 74.84 kB / 324.1 MB, free: 328 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.008367, allocations: 118.9 kB / 324.3 MB, free: 184 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.00837, allocations: 0 / 324.3 MB, free: 184 kB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001919/0.008562, allocations: 145.4 kB / 324.4 MB, free: 32 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.008581, allocations: 4 kB / 324.4 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.00859, allocations: 4 kB / 324.4 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.008607, allocations: 0 / 324.4 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.008766, allocations: 28.03 kB / 324.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.008776, allocations: 7.875 kB / 324.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.032e-05/0.008826, allocations: 24.05 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.008837, allocations: 8 kB / 324.5 MB, free: 15.96 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 0.0001112/0.008948, allocations: 121.8 kB / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.009057, allocations: 77.58 kB / 324.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.101e-05/0.009108, allocations: 16.78 kB / 324.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.009114, allocations: 11.92 kB / 324.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.009124, allocations: 3.938 kB / 324.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.00913, allocations: 0 / 324.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.009348, allocations: 168.6 kB / 324.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.009354, allocations: 7.984 kB / 324.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.009472, allocations: 35.98 kB / 324.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.009475, allocations: 0 / 324.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.009489, allocations: 8 kB / 324.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.009492, allocations: 3.938 kB / 324.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.009497, allocations: 3.938 kB / 324.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.009936, allocations: 366.3 kB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.091e-05/0.009957, allocations: 11.95 kB / 325.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.00998, allocations: 4 kB / 325.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.174e-05/0.01005, allocations: 12.14 kB / 325.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.76e-05/0.01012, allocations: 15.88 kB / 325.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.01013, allocations: 4 kB / 325.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.04e-05/0.0102, allocations: 103.2 kB / 325.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0102, allocations: 0 / 325.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002446/0.01044, allocations: 23.89 kB / 325.5 MB, free: 14.9 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.0007368/0.01118, allocations: 0.9039 MB / 326.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.01142, allocations: 91.92 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.01143, allocations: 0 / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.512e-05/0.01148, allocations: 31.91 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.01198, allocations: 52.3 kB / 326.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.01383, allocations: 1.8 MB / 328.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.008e-05/0.01392, allocations: 97.31 kB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.668e-05/0.01396, allocations: 16.33 kB / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.561e-05/0.01404, allocations: 36.48 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.323e-06/0.01404, allocations: 0 / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.03569, allocations: 3.375 MB / 331.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.719/6.755, allocations: 11.88 kB / 331.9 MB, free: 8.504 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/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: 8.489084557630122]