Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001359/0.001359, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001456/0.001456, allocations: 213.1 kB / 23.73 MB, free: 4.164 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.463/1.463, allocations: 230.5 MB / 257.4 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 63.89 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3686, allocations: 53.41 MB / 431.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004212/0.3728, allocations: 2.007 MB / 433.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.3742, allocations: 0.5726 MB / 433.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.3744, allocations: 7.938 kB / 433.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.3745, allocations: 19.8 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.3748, allocations: 35.66 kB / 433.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.3752, allocations: 71.75 kB / 433.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002198/0.3754, allocations: 131.5 kB / 434 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.3755, allocations: 34.05 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.3757, allocations: 51.8 kB / 434 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.3758, allocations: 59.62 kB / 434.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.3758, allocations: 15.94 kB / 434.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.733e-05/0.3758, allocations: 16 kB / 434.1 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.213e-05/0.3759, allocations: 31.91 kB / 434.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.78e-05/0.376, allocations: 51.67 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.3762, allocations: 149 kB / 434.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3762, allocations: 0 / 434.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3763, allocations: 0 / 434.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3763, allocations: 0 / 434.4 MB, free: 3.219 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007335/0.377, allocations: 381.6 kB / 434.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.377, allocations: 15.98 kB / 434.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.555e-05/0.3771, allocations: 54.67 kB / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.3772, allocations: 20.8 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.3775, allocations: 162.3 kB / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.3775, allocations: 8.375 kB / 435 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.3775, allocations: 12.38 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005977/0.3781, allocations: 254.7 kB / 435.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.3781, allocations: 3.938 kB / 435.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.3782, allocations: 8 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.3782, allocations: 0 / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.3785, allocations: 87.88 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008245/0.3793, allocations: 0.5193 MB / 435.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000408/0.3797, allocations: 143.8 kB / 436 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.3799, allocations: 78.64 kB / 436.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.3799, allocations: 4 kB / 436.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.3799, allocations: 38.56 kB / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.3799, allocations: 0 / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005539/0.3805, allocations: 189.3 kB / 436.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.305e-05/0.3806, allocations: 118.9 kB / 436.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.3807, allocations: 155.2 kB / 436.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.3808, allocations: 25.7 kB / 436.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.183e-05/0.3809, allocations: 120.5 kB / 436.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.086e-05/0.3809, allocations: 27.78 kB / 436.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.28e-05/0.381, allocations: 41.64 kB / 436.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3811, allocations: 322.8 kB / 437.1 MB, free: 220 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.3812, allocations: 39.91 kB / 437.1 MB, free: 180 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.3814, allocations: 133.1 kB / 437.3 MB, free: 0 / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.3817, allocations: 193.6 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3817, allocations: 3.938 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000406/0.3822, allocations: 201.2 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3822, allocations: 8 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.3822, allocations: 4 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3822, allocations: 4 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.3824, allocations: 47.91 kB / 437.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.3824, allocations: 4 kB / 437.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.3825, allocations: 20.27 kB / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.3825, allocations: 15.98 kB / 437.8 MB, free: 15.45 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.0001377/0.3826, allocations: 137.7 kB / 437.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.3828, allocations: 93.53 kB / 438 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.449e-05/0.3829, allocations: 20.7 kB / 438 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3829, allocations: 0 / 438 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3829, allocations: 4 kB / 438 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.3829, allocations: 3.938 kB / 438 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/0.3832, allocations: 172.6 kB / 438.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3832, allocations: 0 / 438.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.3834, allocations: 47.91 kB / 438.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.3834, allocations: 4 kB / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.3834, allocations: 0 / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3834, allocations: 0 / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3834, allocations: 4 kB / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005588/0.3839, allocations: 383.4 kB / 438.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.847e-05/0.384, allocations: 23.92 kB / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.384, allocations: 8 kB / 438.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.3842, allocations: 12.05 kB / 438.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.3842, allocations: 3.938 kB / 438.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.3842, allocations: 11.98 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.864e-05/0.3843, allocations: 115.2 kB / 438.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3843, allocations: 96 / 438.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.3847, allocations: 39.83 kB / 438.8 MB, free: 14.31 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.0008712/0.3855, allocations: 0.9227 MB / 439.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003444/0.3859, allocations: 123.8 kB / 439.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3859, allocations: 0 / 439.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.386, allocations: 28.91 kB / 439.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/0.3865, allocations: 56 kB / 440 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.3894, allocations: 2.115 MB / 442.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.3895, allocations: 110.6 kB / 442.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.057e-05/0.3896, allocations: 13.44 kB / 442.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.337e-05/0.3897, allocations: 35.42 kB / 442.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3897, allocations: 0 / 442.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03385/0.4235, allocations: 3.575 MB / 445.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.33, allocations: 15.73 kB / 445.8 MB, free: 7.266 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.142780359834433]