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.001281/0.001281, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001441/0.001441, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.485/1.485, allocations: 230.5 MB / 258.2 MB, free: 7.793 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.001891/0.001891, allocations: 63.91 kB / 378.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3346, allocations: 53.4 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003784/0.3384, allocations: 1.979 MB / 433.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.3395, allocations: 0.5337 MB / 434.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.3396, allocations: 4 kB / 434.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.3398, allocations: 15.8 kB / 434.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.3399, allocations: 35.66 kB / 434.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.3402, allocations: 55.88 kB / 434.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.3404, allocations: 119.6 kB / 434.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.3406, allocations: 51.66 kB / 434.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.819e-05/0.3407, allocations: 47.86 kB / 434.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.3408, allocations: 59.69 kB / 434.8 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.3408, allocations: 12 kB / 434.8 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.475e-05/0.3409, allocations: 15.94 kB / 434.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.734e-05/0.3409, allocations: 23.92 kB / 434.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.589e-05/0.341, allocations: 51.73 kB / 434.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.3412, allocations: 123.4 kB / 435 MB, free: 3.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3412, allocations: 4 kB / 435 MB, free: 3.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3412, allocations: 0 / 435 MB, free: 3.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.3412, allocations: 0 / 435 MB, free: 3.336 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.000666/0.3419, allocations: 361.8 kB / 435.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.342, allocations: 12.03 kB / 435.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.788e-05/0.342, allocations: 4.188 kB / 435.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.771e-05/0.342, allocations: 46.73 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/0.3421, allocations: 16.78 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.3423, allocations: 162.2 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.3423, allocations: 8.375 kB / 435.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.3424, allocations: 12.38 kB / 435.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005432/0.3429, allocations: 254.5 kB / 435.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.343, allocations: 0 / 435.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.343, allocations: 4 kB / 435.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.343, allocations: 4 kB / 435.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.3432, allocations: 87.88 kB / 436 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006795/0.3439, allocations: 0.5154 MB / 436.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.3443, allocations: 139.9 kB / 436.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.3444, allocations: 74.56 kB / 436.7 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.3445, allocations: 4 kB / 436.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.3445, allocations: 38.5 kB / 436.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.3445, allocations: 4 kB / 436.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005336/0.345, allocations: 185.4 kB / 436.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.3451, allocations: 110.8 kB / 437 MB, free: 1.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3452, allocations: 130.2 kB / 437.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3453, allocations: 29.7 kB / 437.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.3453, allocations: 111.9 kB / 437.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.3454, allocations: 23.84 kB / 437.3 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.3454, allocations: 37.7 kB / 437.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3456, allocations: 322.8 kB / 437.7 MB, free: 432 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.3457, allocations: 40.09 kB / 437.7 MB, free: 392 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.3459, allocations: 137.2 kB / 437.8 MB, free: 208 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.3462, allocations: 193.4 kB / 438 MB, free: 15.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3462, allocations: 4 kB / 438 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003712/0.3466, allocations: 197.2 kB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3466, allocations: 4.375 kB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3466, allocations: 4 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.3466, allocations: 4.469 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.3468, allocations: 51.91 kB / 438.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.3468, allocations: 11.92 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3469, allocations: 23.88 kB / 438.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.3469, allocations: 12 kB / 438.3 MB, free: 15.65 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.0001174/0.347, allocations: 137.7 kB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.3472, allocations: 85.58 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.177e-05/0.3472, allocations: 20.7 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3472, allocations: 0 / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3472, allocations: 4 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.3472, allocations: 4 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.3475, allocations: 164.6 kB / 438.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3475, allocations: 0 / 438.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.3477, allocations: 35.98 kB / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3477, allocations: 4 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.3477, allocations: 0 / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3477, allocations: 3.984 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3477, allocations: 15.88 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005586/0.3483, allocations: 382.2 kB / 439.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.384e-05/0.3483, allocations: 15.88 kB / 439.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.3483, allocations: 4 kB / 439.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.3484, allocations: 11.98 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.124e-05/0.3485, allocations: 3.984 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.3485, allocations: 8 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.578e-05/0.3486, allocations: 95.27 kB / 439.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3486, allocations: 0 / 439.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.3489, allocations: 24 kB / 439.3 MB, free: 14.57 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.0008188/0.3497, allocations: 0.9235 MB / 440.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003168/0.35, allocations: 119.8 kB / 440.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.35, allocations: 0 / 440.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.405e-05/0.3501, allocations: 35.97 kB / 440.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.3506, allocations: 58.72 kB / 440.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.353, allocations: 2.058 MB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.3531, allocations: 105.5 kB / 442.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.559e-05/0.3532, allocations: 9.078 kB / 442.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.473e-05/0.3533, allocations: 35.44 kB / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3533, allocations: 0 / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.3791, allocations: 3.074 MB / 445.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.42, allocations: 8.375 kB / 445.7 MB, free: 8.07 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: 14.052948524942622]