Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 197.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.6 MB / 244.3 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008509/0.0008509, allocations: 96.08 kB / 296.4 MB, free: 6.781 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002314, allocations: 8 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2168, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002052/0.2189, allocations: 1.676 MB / 409.2 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009557/0.2199, allocations: 0.5347 MB / 409.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.2201, allocations: 4 kB / 409.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.2202, allocations: 11.86 kB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.2203, allocations: 19.86 kB / 409.7 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.2206, allocations: 43.89 kB / 409.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.2208, allocations: 116.3 kB / 409.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.221, allocations: 47.33 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.692e-05/0.2211, allocations: 32.61 kB / 410 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.2212, allocations: 51.75 kB / 410 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.2212, allocations: 5.781 kB / 410 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.2212, allocations: 4 kB / 410 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.2212, allocations: 19.88 kB / 410 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.123e-05/0.2213, allocations: 45.62 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.2214, allocations: 84.8 kB / 410.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.2214, allocations: 5.25 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2214, allocations: 0 / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.507e-06/0.2215, allocations: 0 / 410.2 MB, free: 25.11 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.0005665/0.222, allocations: 408.7 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.2221, allocations: 18.12 kB / 410.6 MB, free: 24.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.2221, allocations: 15.75 kB / 410.6 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.2223, allocations: 202.9 kB / 410.8 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.2224, allocations: 8 kB / 410.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.2224, allocations: 19.94 kB / 410.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.2229, allocations: 256.7 kB / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2229, allocations: 0 / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.2229, allocations: 4 kB / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.223, allocations: 4 kB / 411.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.2232, allocations: 107.8 kB / 411.2 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005621/0.2238, allocations: 0.5843 MB / 411.8 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.2241, allocations: 159.8 kB / 411.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2243, allocations: 82.64 kB / 412 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.2243, allocations: 3.984 kB / 412 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.2244, allocations: 38.56 kB / 412.1 MB, free: 23.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.2244, allocations: 0 / 412.1 MB, free: 23.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.000531/0.2249, allocations: 205.2 kB / 412.3 MB, free: 22.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.225, allocations: 110.8 kB / 412.4 MB, free: 22.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.333e-05/0.2251, allocations: 134.2 kB / 412.5 MB, free: 22.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.2251, allocations: 29.7 kB / 412.5 MB, free: 22.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.2251, allocations: 119.9 kB / 412.6 MB, free: 22.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.2252, allocations: 27.66 kB / 412.7 MB, free: 22.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-06/0.2252, allocations: 4 kB / 412.7 MB, free: 22.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.722e-05/0.2252, allocations: 322.8 kB / 413 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.2253, allocations: 40.34 kB / 413 MB, free: 21.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.2255, allocations: 141.9 kB / 413.2 MB, free: 21.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.2256, allocations: 63.91 kB / 413.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.2256, allocations: 4 kB / 413.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000328/0.226, allocations: 197.2 kB / 413.4 MB, free: 21.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.226, allocations: 4.375 kB / 413.4 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.226, allocations: 7.984 kB / 413.4 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.226, allocations: 12.42 kB / 413.5 MB, free: 21.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.2262, allocations: 47.92 kB / 413.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2262, allocations: 11.88 kB / 413.5 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.2263, allocations: 31.77 kB / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.2263, allocations: 8 kB / 413.5 MB, free: 21.41 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.919e-05/0.2264, allocations: 129.8 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.2265, allocations: 85.5 kB / 413.8 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.358e-05/0.2266, allocations: 24.7 kB / 413.8 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2266, allocations: 3.953 kB / 413.8 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2267, allocations: 7.938 kB / 413.8 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2267, allocations: 0 / 413.8 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.2269, allocations: 201.5 kB / 414 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2269, allocations: 0 / 414 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.2271, allocations: 39.97 kB / 414 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2271, allocations: 0 / 414 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.2271, allocations: 8 kB / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.2271, allocations: 4 kB / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2271, allocations: 3.953 kB / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004539/0.2276, allocations: 399.3 kB / 414.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-05/0.2276, allocations: 89.05 kB / 414.5 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.2276, allocations: 4 kB / 414.5 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.2278, allocations: 15.98 kB / 414.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.2278, allocations: 3.953 kB / 414.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.2278, allocations: 8.062 kB / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.556e-05/0.2279, allocations: 99.27 kB / 414.7 MB, free: 20.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2279, allocations: 0 / 414.7 MB, free: 20.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002856/0.2282, allocations: 27.94 kB / 414.7 MB, free: 20.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.859e-05/0.2283, allocations: 107.7 kB / 414.8 MB, free: 20.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.2286, allocations: 123.8 kB / 414.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2286, allocations: 3.938 kB / 414.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.225e-05/0.2287, allocations: 36.91 kB / 414.9 MB, free: 19.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.2291, allocations: 56.3 kB / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006185/0.2298, allocations: 0.4956 MB / 415.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.2299, allocations: 0.7245 MB / 416.2 MB, free: 18.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.23, allocations: 15.44 kB / 416.2 MB, free: 18.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.23, allocations: 0 / 416.2 MB, free: 18.54 MB / 298.7 MB Notification: Performance of Templates: time 0.002782/0.2328, allocations: 1.482 MB / 417.7 MB, free: 17.07 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches