Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.000843/0.000843, 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.0008174/0.0008174, 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.8817/0.8817, allocations: 177 MB / 204.1 MB, free: 5.75 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.767e-05/1.942e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00242/0.002439, allocations: 2.039 MB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007934/0.003233, allocations: 0.5065 MB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.333e-05/0.003326, allocations: 11.88 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.00343, allocations: 15.8 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.108e-05/0.003491, allocations: 27.72 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.003734, allocations: 59.8 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.003889, allocations: 135.4 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.004032, allocations: 41.97 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.374e-05/0.004126, allocations: 63.88 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.004186, allocations: 51.81 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.004216, allocations: 12 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.436e-05/0.004231, allocations: 8 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.307e-05/0.004254, allocations: 23.92 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.79e-05/0.004292, allocations: 39.91 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.004456, allocations: 139.4 kB / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.004458, allocations: 0 / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.00446, allocations: 0 / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.004465, allocations: 0 / 327.7 MB, free: 12.72 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004696/0.004934, allocations: 353.8 kB / 328 MB, free: 12.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.004986, allocations: 19.98 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.003e-05/0.005026, allocations: 42.75 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.005056, allocations: 12.84 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.005282, allocations: 157.5 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.005293, allocations: 8.375 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.005321, allocations: 20.33 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003378/0.005658, allocations: 227.1 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.00567, allocations: 192 / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.005682, allocations: 12.06 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.005687, allocations: 4 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.005825, allocations: 79.88 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004712/0.006296, allocations: 0.5117 MB / 329.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.006527, allocations: 151.9 kB / 329.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.191e-05/0.006609, allocations: 62.64 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.006629, allocations: 3.984 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.006647, allocations: 42.56 kB / 329.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.006648, allocations: 0 / 329.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000304/0.006952, allocations: 177.5 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.007013, allocations: 122.7 kB / 329.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.632e-05/0.007089, allocations: 138 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.007101, allocations: 29.7 kB / 329.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/0.007397, allocations: 116 kB / 329.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.007414, allocations: 27.78 kB / 329.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.007447, allocations: 25.72 kB / 330 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.099e-05/0.007518, allocations: 322.8 kB / 330.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.623e-05/0.007574, allocations: 27.97 kB / 330.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.575e-05/0.00765, allocations: 87.7 kB / 330.4 MB, free: 9.703 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.007777, allocations: 118.9 kB / 330.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.007779, allocations: 0 / 330.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001659/0.007945, allocations: 145.4 kB / 330.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.007957, allocations: 4 kB / 330.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.007962, allocations: 4 kB / 330.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.007974, allocations: 4 kB / 330.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.958e-05/0.008043, allocations: 24.36 kB / 330.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.008052, allocations: 15.86 kB / 330.7 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.978e-05/0.008092, allocations: 12.16 kB / 330.7 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.008099, allocations: 7.938 kB / 330.7 MB, free: 9.344 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 6.721e-05/0.008166, allocations: 125.8 kB / 330.8 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.008262, allocations: 97.52 kB / 330.9 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.008293, allocations: 16.78 kB / 331 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.008295, allocations: 4 kB / 331 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.008301, allocations: 3.938 kB / 331 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.008305, allocations: 4 kB / 331 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001596/0.008465, allocations: 156.7 kB / 331.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.008466, allocations: 0 / 331.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.008583, allocations: 51.95 kB / 331.2 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.008586, allocations: 4 kB / 331.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.008595, allocations: 0 / 331.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.008598, allocations: 7.938 kB / 331.2 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.008599, allocations: 3.938 kB / 331.2 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.008916, allocations: 379.4 kB / 331.6 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.511e-05/0.008931, allocations: 11.92 kB / 331.6 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.008947, allocations: 8.062 kB / 331.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.761e-05/0.009015, allocations: 11.98 kB / 331.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.125e-05/0.009046, allocations: 7.938 kB / 331.6 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.00905, allocations: 0 / 331.6 MB, free: 8.395 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.294e-05/0.009093, allocations: 118.1 kB / 331.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009093, allocations: 0 / 331.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001903/0.009283, allocations: 24 kB / 331.7 MB, free: 8.258 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 (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.0004806/0.009764, allocations: 0.9154 MB / 332.7 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001782/0.009942, allocations: 94.59 kB / 332.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.009944, allocations: 0 / 332.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.1e-05/0.009995, allocations: 27.92 kB / 332.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.01037, allocations: 75.8 kB / 332.8 MB, free: 7.121 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.01177, allocations: 1.845 MB / 334.7 MB, free: 5.137 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.879e-05/0.01184, allocations: 106.3 kB / 334.8 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.144e-05/0.01188, allocations: 8.969 kB / 334.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.01193, allocations: 40.42 kB / 334.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01193, allocations: 0 / 334.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.02999, allocations: 3.629 MB / 338.5 MB, free: 1.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.682/6.712, allocations: 3.859 kB / 338.5 MB, free: 1.516 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.374244938604534]