Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008678/0.0008678, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009316/0.0009316, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9047/0.9047, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.006e-06/3.006e-06, allocations: 0 / 318.4 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.613e-05/2.914e-05, allocations: 2.281 kB / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003398/0.003428, allocations: 1.984 MB / 320.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008611/0.004289, allocations: 0.5414 MB / 320.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.004411, allocations: 3.938 kB / 320.9 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.004536, allocations: 23.73 kB / 321 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.004725, allocations: 31.72 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.005016, allocations: 83.66 kB / 321.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.005199, allocations: 131.5 kB / 321.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.005342, allocations: 50.03 kB / 321.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.005447, allocations: 67.81 kB / 321.3 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.805e-05/0.005515, allocations: 47.81 kB / 321.4 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.005544, allocations: 12 kB / 321.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.609e-05/0.00556, allocations: 12 kB / 321.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.566e-05/0.005616, allocations: 27.91 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.652e-05/0.005662, allocations: 47.84 kB / 321.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.005853, allocations: 147.4 kB / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.005858, allocations: 0 / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.005859, allocations: 4 kB / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.005864, allocations: 0 / 321.6 MB, free: 3.172 MB / 282.7 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.000489/0.006353, allocations: 377.6 kB / 322 MB, free: 2.773 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.006394, allocations: 8.922 kB / 322 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.931e-05/0.006433, allocations: 46.73 kB / 322 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.529e-05/0.006468, allocations: 20.84 kB / 322.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.0067, allocations: 165.4 kB / 322.2 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.00672, allocations: 16.38 kB / 322.2 MB, free: 2.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.006748, allocations: 16.38 kB / 322.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003781/0.007126, allocations: 243.2 kB / 322.5 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.00714, allocations: 4.125 kB / 322.5 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.007154, allocations: 8.125 kB / 322.5 MB, free: 2.199 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.00716, allocations: 4 kB / 322.5 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.007311, allocations: 87.88 kB / 322.6 MB, free: 2.109 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005034/0.007815, allocations: 0.5195 MB / 323.1 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.008072, allocations: 139.9 kB / 323.2 MB, free: 1.363 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.029e-05/0.008162, allocations: 66.64 kB / 323.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.008185, allocations: 8 kB / 323.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.008206, allocations: 38.48 kB / 323.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.008207, allocations: 4 kB / 323.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003352/0.008542, allocations: 185.4 kB / 323.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.008599, allocations: 115.1 kB / 323.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.008708, allocations: 163 kB / 323.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.008721, allocations: 29.7 kB / 323.8 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.28e-05/0.008773, allocations: 116.4 kB / 324 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.008792, allocations: 23.84 kB / 324 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.008829, allocations: 29.84 kB / 324 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.131e-05/0.00891, allocations: 322.8 kB / 324.3 MB, free: 208 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.939e-05/0.008969, allocations: 27.97 kB / 324.4 MB, free: 180 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.907e-05/0.009038, allocations: 74.84 kB / 324.4 MB, free: 80 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.009185, allocations: 119 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.009187, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001749/0.009362, allocations: 141.3 kB / 324.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.009376, allocations: 8.219 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.009381, allocations: 4 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.009395, allocations: 4 kB / 324.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.991e-05/0.009465, allocations: 23.98 kB / 324.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.009472, allocations: 11.88 kB / 324.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.837e-05/0.009521, allocations: 23.88 kB / 324.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.009528, allocations: 4 kB / 324.8 MB, free: 15.71 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 8.034e-05/0.009608, allocations: 125.8 kB / 324.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-05/0.009706, allocations: 93.53 kB / 325 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.238e-05/0.009769, allocations: 20.78 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.009772, allocations: 0 / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.009777, allocations: 7.938 kB / 325 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.009782, allocations: 3.984 kB / 325 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.009965, allocations: 172.7 kB / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.009967, allocations: 0 / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.01007, allocations: 39.92 kB / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.01008, allocations: 4 kB / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.01009, allocations: 3.984 kB / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.01009, allocations: 4 kB / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.01009, allocations: 3.938 kB / 325.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000333/0.01043, allocations: 378.5 kB / 325.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.01048, allocations: 31.84 kB / 325.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.01049, allocations: 4 kB / 325.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.151e-05/0.01057, allocations: 8 kB / 325.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.01061, allocations: 15.86 kB / 325.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.01062, allocations: 4.094 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.915e-05/0.01068, allocations: 119.2 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01068, allocations: 4.062 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002127/0.01089, allocations: 27.95 kB / 325.8 MB, free: 14.59 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.0004908/0.01138, allocations: 0.9188 MB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001856/0.01157, allocations: 96.23 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01157, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.254e-05/0.01162, allocations: 27.97 kB / 326.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.012, allocations: 66.88 kB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.01342, allocations: 1.861 MB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.249e-05/0.0135, allocations: 118.2 kB / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.487e-05/0.01355, allocations: 16.58 kB / 328.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.926e-05/0.01361, allocations: 36.48 kB / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01361, allocations: 0 / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.03281, allocations: 3.625 MB / 332.6 MB, free: 7.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.721/6.754, allocations: 3.438 kB / 332.6 MB, free: 7.836 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 8.539101138710976]