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.001339/0.001339, allocations: 109.1 kB / 21.22 MB, free: 0.7461 MB / 14.72 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.001498/0.001498, allocations: 215.7 kB / 24.53 MB, free: 4.137 MB / 14.72 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 1.656/1.656, allocations: 230.5 MB / 258.2 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 59.91 kB / 378.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.451/0.4532, allocations: 53.41 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004603/0.4578, allocations: 2.047 MB / 434 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.4591, allocations: 0.5648 MB / 434.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.4592, allocations: 4 kB / 434.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.4594, allocations: 19.8 kB / 434.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.4596, allocations: 35.72 kB / 434.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.4599, allocations: 59.81 kB / 434.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.4602, allocations: 119.6 kB / 434.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.4603, allocations: 45.56 kB / 434.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.4604, allocations: 47.8 kB / 434.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.4606, allocations: 63.69 kB / 435 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.985e-05/0.4606, allocations: 12 kB / 435 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.405e-05/0.4606, allocations: 8 kB / 435 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.223e-05/0.4606, allocations: 31.86 kB / 435 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.433e-05/0.4607, allocations: 59.73 kB / 435.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.461, allocations: 131.8 kB / 435.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.461, allocations: 0 / 435.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.461, allocations: 0 / 435.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.461, allocations: 0 / 435.2 MB, free: 3.426 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000731/0.4618, allocations: 357.8 kB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/0.4618, allocations: 8.031 kB / 435.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.967e-05/0.4619, allocations: 12.19 kB / 435.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.4619, allocations: 50.67 kB / 435.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.462, allocations: 16.84 kB / 435.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.4623, allocations: 154.2 kB / 435.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.4623, allocations: 16.31 kB / 435.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.4623, allocations: 12.38 kB / 435.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.4629, allocations: 246.5 kB / 436 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.4629, allocations: 0 / 436 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.4629, allocations: 4 kB / 436.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.463, allocations: 4 kB / 436.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000281/0.4632, allocations: 91.86 kB / 436.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007437/0.464, allocations: 0.5271 MB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.4644, allocations: 143.7 kB / 436.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.4645, allocations: 74.62 kB / 436.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.4646, allocations: 8.109 kB / 436.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.4646, allocations: 38.56 kB / 436.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.4646, allocations: 0 / 436.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006411/0.4652, allocations: 181.4 kB / 437.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.4654, allocations: 110.8 kB / 437.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.4656, allocations: 137 kB / 437.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.4656, allocations: 29.83 kB / 437.4 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.4657, allocations: 115.9 kB / 437.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.122e-05/0.4658, allocations: 27.84 kB / 437.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.923e-05/0.4658, allocations: 29.7 kB / 437.5 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.466, allocations: 330.8 kB / 437.9 MB, free: 500 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.4662, allocations: 31.98 kB / 437.9 MB, free: 468 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.4664, allocations: 141 kB / 438 MB, free: 280 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.4668, allocations: 189.5 kB / 438.2 MB, free: 40 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4668, allocations: 0 / 438.2 MB, free: 40 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004384/0.4672, allocations: 201.2 kB / 438.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.4673, allocations: 10.97 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.4673, allocations: 4.375 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.4673, allocations: 8 kB / 438.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.4675, allocations: 51.91 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.4675, allocations: 4 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.4676, allocations: 19.83 kB / 438.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.4676, allocations: 12 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001831/0.4678, allocations: 137.6 kB / 438.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.468, allocations: 85.58 kB / 438.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.4681, allocations: 20.72 kB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.4681, allocations: 4 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4681, allocations: 0 / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/0.4681, allocations: 3.984 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.4685, allocations: 180.5 kB / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4685, allocations: 0 / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.4687, allocations: 43.97 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4687, allocations: 0 / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.4688, allocations: 4 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.4688, allocations: 3.938 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4688, allocations: 4 kB / 439 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000648/0.4694, allocations: 379.4 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.4695, allocations: 15.88 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.4695, allocations: 4.062 kB / 439.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.4696, allocations: 15.98 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.4697, allocations: 3.984 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.4697, allocations: 8 kB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.852e-05/0.4698, allocations: 95.27 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4698, allocations: 3.938 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00035/0.4701, allocations: 24 kB / 439.5 MB, free: 14.63 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 (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.0008909/0.471, allocations: 0.9229 MB / 440.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003569/0.4714, allocations: 119.7 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.4714, allocations: 4 kB / 440.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.4715, allocations: 28.06 kB / 440.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005548/0.472, allocations: 57.05 kB / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.4748, allocations: 2.064 MB / 442.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.4752, allocations: 0.7123 MB / 443.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.322e-05/0.4753, allocations: 9.094 kB / 443.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.812e-05/0.4753, allocations: 39.42 kB / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.214e-06/0.4753, allocations: 0 / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.5063, allocations: 3.023 MB / 446.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.2, allocations: 8 kB / 446.5 MB, free: 7.551 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/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: 15.163445031037554]