Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.0007768/0.0007768, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0007835/0.0007835, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.881/0.881, allocations: 177 MB / 204.1 MB, free: 5.746 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.355e-06/2.355e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.537e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003534/0.003559, allocations: 1.986 MB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009042/0.004463, allocations: 0.5414 MB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.004571, allocations: 4 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.00468, allocations: 15.8 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.004817, allocations: 35.72 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.00503, allocations: 63.75 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.005177, allocations: 123.5 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.005309, allocations: 41.55 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.967e-05/0.005409, allocations: 79.75 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.492e-05/0.005474, allocations: 35.89 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.0055, allocations: 8 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.482e-05/0.005514, allocations: 12 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.712e-05/0.005541, allocations: 31.89 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.431e-05/0.005586, allocations: 43.84 kB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.005752, allocations: 123.6 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.005756, allocations: 3.984 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.005758, allocations: 0 / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.005762, allocations: 0 / 327.6 MB, free: 12.75 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005184/0.006281, allocations: 349.8 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.006325, allocations: 15.98 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.006368, allocations: 46.73 kB / 328 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.006403, allocations: 16.84 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.006628, allocations: 153.5 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.006642, allocations: 16.31 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.00667, allocations: 12.38 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.007045, allocations: 243.1 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.007057, allocations: 4.125 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.007069, allocations: 8.125 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.007074, allocations: 8 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.007223, allocations: 83.88 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004625/0.007685, allocations: 0.5117 MB / 329.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.007933, allocations: 139.9 kB / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.832e-05/0.008022, allocations: 70.62 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.008044, allocations: 4 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.008063, allocations: 46.5 kB / 329.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.008064, allocations: 0 / 329.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003176/0.008382, allocations: 177.4 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.008437, allocations: 114.9 kB / 329.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.267e-05/0.00851, allocations: 133 kB / 329.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.00852, allocations: 25.7 kB / 329.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.201e-05/0.008572, allocations: 119.9 kB / 329.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.00859, allocations: 27.91 kB / 329.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.008622, allocations: 21.72 kB / 329.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.696e-05/0.008699, allocations: 322.8 kB / 330.3 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.5e-05/0.008754, allocations: 27.97 kB / 330.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.975e-05/0.008824, allocations: 78.84 kB / 330.4 MB, free: 9.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.008951, allocations: 122.9 kB / 330.5 MB, free: 9.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.008954, allocations: 4 kB / 330.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001638/0.009118, allocations: 133.6 kB / 330.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.009131, allocations: 15.97 kB / 330.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.009136, allocations: 384 / 330.6 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.009148, allocations: 4 kB / 330.6 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.416e-05/0.009222, allocations: 27.98 kB / 330.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.00923, allocations: 7.875 kB / 330.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.181e-05/0.009272, allocations: 19.88 kB / 330.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.009279, allocations: 4 kB / 330.7 MB, free: 9.371 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.917e-05/0.009348, allocations: 121.8 kB / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.224e-05/0.00944, allocations: 89.58 kB / 330.9 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.0095, allocations: 20.77 kB / 330.9 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.009503, allocations: 0 / 330.9 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.00951, allocations: 7.938 kB / 330.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.009514, allocations: 0 / 330.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.00969, allocations: 172.6 kB / 331.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.009692, allocations: 0 / 331.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.009792, allocations: 39.91 kB / 331.1 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.009795, allocations: 4 kB / 331.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.009805, allocations: 4 kB / 331.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.009806, allocations: 0 / 331.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.00981, allocations: 11.94 kB / 331.2 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003198/0.01013, allocations: 371.5 kB / 331.5 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/0.01014, allocations: 11.97 kB / 331.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.01016, allocations: 4 kB / 331.5 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.963e-05/0.01023, allocations: 11.94 kB / 331.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.01026, allocations: 7.922 kB / 331.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.01027, allocations: 8 kB / 331.6 MB, free: 8.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.004e-05/0.01031, allocations: 102 kB / 331.7 MB, free: 8.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01031, allocations: 0 / 331.7 MB, free: 8.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.0105, allocations: 27.94 kB / 331.7 MB, free: 8.305 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.0004786/0.01098, allocations: 0.9076 MB / 332.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.01115, allocations: 100.1 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.01116, allocations: 4 kB / 332.7 MB, free: 7.262 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.735e-05/0.0112, allocations: 23.97 kB / 332.7 MB, free: 7.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.01155, allocations: 68.17 kB / 332.8 MB, free: 7.172 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.01295, allocations: 1.807 MB / 334.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.79e-05/0.01302, allocations: 101.2 kB / 334.7 MB, free: 5.109 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.433e-05/0.01306, allocations: 12.97 kB / 334.7 MB, free: 5.098 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.893e-05/0.01312, allocations: 36.48 kB / 334.7 MB, free: 5.062 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01312, allocations: 0 / 334.7 MB, free: 5.062 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.02999, allocations: 3.422 MB / 338.2 MB, free: 1.785 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.64/6.669, allocations: 4 kB / 338.2 MB, free: 1.781 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.319248275831342]