Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009471/0.0009472, allocations: 195.9 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.231/1.231, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006977/0.0006978, allocations: 102.1 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002284, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2383, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.00173/0.2401, allocations: 1.545 MB / 409 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006849/0.2408, allocations: 460.6 kB / 409.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.768e-05/0.2409, allocations: 8.438 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.973e-05/0.241, allocations: 8.672 kB / 409.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.548e-05/0.2411, allocations: 22.52 kB / 409.5 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001357/0.2412, allocations: 27.91 kB / 409.5 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.2413, allocations: 91.64 kB / 409.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.2415, allocations: 33.56 kB / 409.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.276e-05/0.2415, allocations: 28.48 kB / 409.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.58e-05/0.2416, allocations: 36.67 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.2416, allocations: 4 kB / 409.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.854e-05/0.2417, allocations: 4 kB / 409.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.2417, allocations: 20.59 kB / 409.8 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.2417, allocations: 38.27 kB / 409.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.34e-05/0.2418, allocations: 64.84 kB / 409.9 MB, free: 25.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2418, allocations: 4.844 kB / 409.9 MB, free: 25.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2418, allocations: 0 / 409.9 MB, free: 25.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.2418, allocations: 3.094 kB / 409.9 MB, free: 25.47 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004766/0.2423, allocations: 395.2 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2424, allocations: 12.03 kB / 410.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.2424, allocations: 11.81 kB / 410.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.2426, allocations: 188.9 kB / 410.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.2426, allocations: 12.12 kB / 410.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.2427, allocations: 12 kB / 410.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.243, allocations: 127.1 kB / 410.6 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.243, allocations: 7.906 kB / 410.6 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.243, allocations: 0 / 410.6 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.243, allocations: 0 / 410.6 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.2433, allocations: 83.94 kB / 410.7 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/0.2439, allocations: 0.5171 MB / 411.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.2441, allocations: 94.53 kB / 411.3 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.2442, allocations: 40.84 kB / 411.4 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.2443, allocations: 7.938 kB / 411.4 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.2443, allocations: 34.55 kB / 411.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2443, allocations: 0 / 411.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.000445/0.2447, allocations: 145.5 kB / 411.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.2448, allocations: 51.41 kB / 411.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.878e-05/0.2449, allocations: 137.7 kB / 411.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.2449, allocations: 29.7 kB / 411.7 MB, free: 23.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.2449, allocations: 111.8 kB / 411.9 MB, free: 23.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.245, allocations: 27.64 kB / 411.9 MB, free: 23.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.245, allocations: 0 / 411.9 MB, free: 23.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.804e-05/0.245, allocations: 322.8 kB / 412.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.2452, allocations: 35.98 kB / 412.2 MB, free: 22.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.2453, allocations: 68.27 kB / 412.3 MB, free: 22.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.2454, allocations: 55.84 kB / 412.4 MB, free: 22.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2455, allocations: 4 kB / 412.4 MB, free: 22.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000316/0.2458, allocations: 145.4 kB / 412.5 MB, free: 22.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.2458, allocations: 8 kB / 412.5 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2458, allocations: 0 / 412.5 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.2458, allocations: 4 kB / 412.5 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.246, allocations: 31.97 kB / 412.5 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.246, allocations: 7.938 kB / 412.6 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.995e-05/0.2461, allocations: 20.02 kB / 412.6 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.2462, allocations: 8 kB / 412.6 MB, free: 22.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.535e-05/0.2462, allocations: 113.8 kB / 412.7 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.2463, allocations: 11.86 kB / 412.7 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.2463, allocations: 8.375 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2463, allocations: 4 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2463, allocations: 0 / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.2463, allocations: 4 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.2465, allocations: 201.7 kB / 412.9 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2465, allocations: 0 / 412.9 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.2467, allocations: 23.98 kB / 412.9 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.2467, allocations: 3.953 kB / 412.9 MB, free: 22.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2467, allocations: 11.94 kB / 413 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2468, allocations: 0 / 413 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2468, allocations: 3.984 kB / 413 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.2472, allocations: 247.3 kB / 413.2 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.467e-05/0.2472, allocations: 85.02 kB / 413.3 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.2472, allocations: 3.953 kB / 413.3 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.484e-05/0.2473, allocations: 12.03 kB / 413.3 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.2474, allocations: 8 kB / 413.3 MB, free: 21.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.2474, allocations: 0 / 413.3 MB, free: 21.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.412e-05/0.2474, allocations: 95.36 kB / 413.4 MB, free: 21.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2474, allocations: 3.938 kB / 413.4 MB, free: 21.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000228/0.2477, allocations: 24 kB / 413.4 MB, free: 21.56 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 7.525e-05/0.2478, allocations: 103.2 kB / 413.5 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002503/0.248, allocations: 91.88 kB / 413.6 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.248, allocations: 0 / 413.6 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.2481, allocations: 44.22 kB / 413.7 MB, free: 21.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.2485, allocations: 22.22 kB / 413.7 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005464/0.249, allocations: 462.8 kB / 414.1 MB, free: 20.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.2491, allocations: 0.6965 MB / 414.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.2492, allocations: 19.44 kB / 414.9 MB, free: 20.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2492, allocations: 0 / 414.9 MB, free: 20.07 MB / 298.7 MB Notification: Performance of Templates: time 0.002246/0.2514, allocations: 1.233 MB / 416.1 MB, free: 18.84 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches