Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 194.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 226.6 MB / 244.3 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007656/0.0007656, allocations: 99.14 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002103/0.0002103, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2299, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001757/0.2317, allocations: 1.719 MB / 409.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000695/0.2324, allocations: 0.5096 MB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.085e-05/0.2325, allocations: 0 / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.281e-05/0.2326, allocations: 11.92 kB / 409.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.816e-05/0.2326, allocations: 16.42 kB / 409.7 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.2329, allocations: 48.8 kB / 409.8 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.233, allocations: 127.5 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.2331, allocations: 36.09 kB / 410 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.811e-05/0.2332, allocations: 37.11 kB / 410 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.168e-05/0.2333, allocations: 51.7 kB / 410 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.2333, allocations: 4 kB / 410 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.668e-05/0.2333, allocations: 4 kB / 410 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.686e-05/0.2333, allocations: 21.39 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.2334, allocations: 49.64 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.218e-05/0.2335, allocations: 80.75 kB / 410.2 MB, free: 25.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2335, allocations: 3.984 kB / 410.2 MB, free: 25.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2335, allocations: 3.25 kB / 410.2 MB, free: 25.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.2335, allocations: 0 / 410.2 MB, free: 25.1 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004442/0.2339, allocations: 415 kB / 410.6 MB, free: 24.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.234, allocations: 11.97 kB / 410.6 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.234, allocations: 19.81 kB / 410.6 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.2342, allocations: 203.5 kB / 410.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.2342, allocations: 12 kB / 410.8 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.2342, allocations: 15.95 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/0.2346, allocations: 226.6 kB / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.2347, allocations: 0 / 411.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.2347, allocations: 8 kB / 411.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2347, allocations: 4 kB / 411.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.2349, allocations: 91.88 kB / 411.2 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004764/0.2354, allocations: 0.5998 MB / 411.8 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.2357, allocations: 151.9 kB / 411.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.2359, allocations: 82.62 kB / 412 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2359, allocations: 7.938 kB / 412 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.2359, allocations: 38.56 kB / 412.1 MB, free: 23.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.2359, allocations: 0 / 412.1 MB, free: 23.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004667/0.2364, allocations: 189.3 kB / 412.2 MB, free: 22.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.2365, allocations: 114.9 kB / 412.4 MB, free: 22.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.681e-05/0.2365, allocations: 136.4 kB / 412.5 MB, free: 22.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.2366, allocations: 30.08 kB / 412.5 MB, free: 22.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.2366, allocations: 115.9 kB / 412.6 MB, free: 22.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.2366, allocations: 27.64 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.2366, allocations: 4 kB / 412.7 MB, free: 22.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.149e-05/0.2367, allocations: 326.8 kB / 413 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.2368, allocations: 44.34 kB / 413 MB, free: 21.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.237, allocations: 152 kB / 413.2 MB, free: 21.79 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.2372, allocations: 150.6 kB / 413.3 MB, free: 21.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2372, allocations: 8.094 kB / 413.3 MB, free: 21.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003188/0.2375, allocations: 201.4 kB / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2376, allocations: 11.95 kB / 413.5 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2376, allocations: 0 / 413.5 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2376, allocations: 8 kB / 413.5 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.2377, allocations: 55.91 kB / 413.6 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.2378, allocations: 4 kB / 413.6 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2379, allocations: 32.08 kB / 413.6 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.2379, allocations: 8 kB / 413.6 MB, free: 21.3 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.797e-05/0.238, allocations: 125.8 kB / 413.8 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.2381, allocations: 89.53 kB / 413.9 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.092e-05/0.2381, allocations: 20.66 kB / 413.9 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2382, allocations: 4 kB / 413.9 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2382, allocations: 0 / 413.9 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2382, allocations: 4 kB / 413.9 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.2384, allocations: 213.4 kB / 414.1 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2384, allocations: 4 kB / 414.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.2386, allocations: 47.91 kB / 414.1 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2386, allocations: 0 / 414.1 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.2386, allocations: 8 kB / 414.2 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2386, allocations: 7.938 kB / 414.2 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2386, allocations: 0 / 414.2 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.2391, allocations: 399.3 kB / 414.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.2391, allocations: 89.06 kB / 414.6 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.2392, allocations: 4 kB / 414.6 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.2393, allocations: 12 kB / 414.7 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.2393, allocations: 11.94 kB / 414.7 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.2394, allocations: 0 / 414.7 MB, free: 20.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.962e-05/0.2394, allocations: 106.4 kB / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2394, allocations: 0 / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002774/0.2397, allocations: 28.03 kB / 414.8 MB, free: 20.04 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.48e-05/0.2398, allocations: 118.9 kB / 414.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.2401, allocations: 136.6 kB / 415 MB, free: 19.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2401, allocations: 0 / 415 MB, free: 19.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.976e-05/0.2402, allocations: 35.91 kB / 415.1 MB, free: 19.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.2406, allocations: 59.95 kB / 415.1 MB, free: 19.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006956/0.2414, allocations: 0.5229 MB / 415.7 MB, free: 19.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.2415, allocations: 0.7128 MB / 416.4 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.2415, allocations: 15.44 kB / 416.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2415, allocations: 0 / 416.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of Templates: time 0.002386/0.2439, allocations: 1.576 MB / 418 MB, free: 16.81 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches