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.001147/0.001147, allocations: 195.4 kB / 17.38 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007605/0.0007606, allocations: 100.4 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2143, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001835/0.2162, allocations: 1.73 MB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007481/0.217, allocations: 0.4912 MB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.2171, allocations: 7.938 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.2173, allocations: 7.922 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.097e-05/0.2174, allocations: 28.38 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.2177, allocations: 39.95 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.2178, allocations: 117.5 kB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.218, allocations: 56.91 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.905e-05/0.2181, allocations: 35.86 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.168e-05/0.2182, allocations: 39.78 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.2182, allocations: 7.938 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.2182, allocations: 8 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.2182, allocations: 19.91 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.702e-05/0.2183, allocations: 73.44 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.2184, allocations: 90.12 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.2185, allocations: 3.984 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.2185, allocations: 3.938 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.2185, allocations: 4.562 kB / 410.8 MB, free: 24.93 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.0005434/0.219, allocations: 405.9 kB / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2191, allocations: 12.03 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.654e-05/0.2191, allocations: 16.75 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.2194, allocations: 208.8 kB / 411.4 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.2194, allocations: 12.03 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.2194, allocations: 16.28 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.2199, allocations: 228.1 kB / 411.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.2199, allocations: 4 kB / 411.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.2199, allocations: 8 kB / 411.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.2199, allocations: 0 / 411.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.2201, allocations: 91.88 kB / 411.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.2207, allocations: 0.6037 MB / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.221, allocations: 151.9 kB / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.2211, allocations: 82.62 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.2212, allocations: 7.938 kB / 412.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.2212, allocations: 30.56 kB / 412.6 MB, free: 22.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.482e-06/0.2212, allocations: 0 / 412.6 MB, free: 22.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000462/0.2217, allocations: 201.2 kB / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.2217, allocations: 114.8 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.612e-05/0.2218, allocations: 136.6 kB / 413.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.2218, allocations: 29.83 kB / 413.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.862e-05/0.2219, allocations: 112 kB / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.2219, allocations: 27.64 kB / 413.2 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.2219, allocations: 8 kB / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.222, allocations: 319.2 kB / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2221, allocations: 47.91 kB / 413.6 MB, free: 21.83 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.2223, allocations: 141 kB / 413.8 MB, free: 21.64 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 = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.2226, allocations: 291.9 kB / 414 MB, free: 21.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2227, allocations: 3.938 kB / 414 MB, free: 21.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003205/0.223, allocations: 221.4 kB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.223, allocations: 12.06 kB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.223, allocations: 4 kB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.223, allocations: 4 kB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.2232, allocations: 47.91 kB / 414.3 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2232, allocations: 4 kB / 414.3 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.2233, allocations: 23.84 kB / 414.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.2233, allocations: 8 kB / 414.4 MB, free: 20.96 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 = PI.y_start. 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.987e-05/0.2234, allocations: 137.7 kB / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.2236, allocations: 93.47 kB / 414.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.2236, allocations: 20.72 kB / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2236, allocations: 0 / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2236, allocations: 0 / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.2236, allocations: 7.984 kB / 414.6 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.2238, allocations: 209.4 kB / 414.8 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2238, allocations: 0 / 414.8 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.224, allocations: 51.91 kB / 414.9 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2241, allocations: 0 / 414.9 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.2241, allocations: 8 kB / 414.9 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2241, allocations: 0 / 414.9 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2241, allocations: 3.984 kB / 414.9 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.2245, allocations: 402.1 kB / 415.3 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.2246, allocations: 88.92 kB / 415.4 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.2246, allocations: 3.984 kB / 415.4 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.2247, allocations: 16.06 kB / 415.4 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.2248, allocations: 11.92 kB / 415.4 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.2248, allocations: 4 kB / 415.4 MB, free: 19.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.324e-05/0.2248, allocations: 102.4 kB / 415.5 MB, free: 19.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2248, allocations: 0 / 415.5 MB, free: 19.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002913/0.2251, allocations: 27.94 kB / 415.5 MB, free: 19.7 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.763e-05/0.2252, allocations: 107.2 kB / 415.6 MB, free: 19.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.2255, allocations: 136.7 kB / 415.8 MB, free: 19.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2256, allocations: 4.031 kB / 415.8 MB, free: 19.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.031e-05/0.2257, allocations: 47.84 kB / 415.8 MB, free: 19.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.2261, allocations: 59.95 kB / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006738/0.2268, allocations: 0.5074 MB / 416.4 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.2269, allocations: 0.7203 MB / 417.1 MB, free: 18.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.227, allocations: 15.44 kB / 417.1 MB, free: 18.03 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.227, allocations: 0 / 417.1 MB, free: 18.03 MB / 298.7 MB Notification: Performance of Templates: time 0.002467/0.2295, allocations: 1.587 MB / 418.7 MB, free: 16.46 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