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.001089/0.001089, allocations: 197.7 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.5 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007383/0.0007382, allocations: 100.6 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.0002198, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2168, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.00152/0.2183, allocations: 1.559 MB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005435/0.2189, allocations: 455.7 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.024e-05/0.219, allocations: 3.938 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.485e-05/0.2191, allocations: 11.94 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.51e-05/0.2191, allocations: 19.78 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001107/0.2192, allocations: 20.53 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.2194, allocations: 96.8 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.2195, allocations: 39.16 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.044e-05/0.2195, allocations: 27.86 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.437e-05/0.2196, allocations: 43.77 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.2196, allocations: 4.844 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.483e-05/0.2196, allocations: 4 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.783e-05/0.2197, allocations: 12.91 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.135e-05/0.2197, allocations: 69.44 kB / 410.4 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.231e-05/0.2198, allocations: 72.77 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2198, allocations: 0.6875 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2198, allocations: 0 / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.828e-06/0.2198, allocations: 1.938 kB / 410.5 MB, free: 25.26 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.0003963/0.2202, allocations: 384.7 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2203, allocations: 16.02 kB / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.2203, allocations: 12.75 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.2205, allocations: 192.9 kB / 411 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.2205, allocations: 4.562 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.2205, allocations: 15.88 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.2208, allocations: 126.7 kB / 411.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2208, allocations: 8 kB / 411.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.2208, allocations: 4 kB / 411.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.2208, allocations: 0 / 411.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.221, allocations: 85.31 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004949/0.2215, allocations: 0.5324 MB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.2217, allocations: 86.53 kB / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.924e-05/0.2218, allocations: 44.84 kB / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.2218, allocations: 0 / 411.9 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.098e-05/0.2218, allocations: 30.56 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.2219, allocations: 3.938 kB / 412 MB, free: 23.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003444/0.2222, allocations: 137.5 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.826e-05/0.2222, allocations: 51.56 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.872e-05/0.2223, allocations: 130.7 kB / 412.3 MB, free: 23.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.2223, allocations: 25.7 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.2224, allocations: 115.8 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.2224, allocations: 31.55 kB / 412.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.2224, allocations: 4 kB / 412.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.276e-05/0.2225, allocations: 330.7 kB / 412.8 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.445e-05/0.2226, allocations: 35.97 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.673e-05/0.2227, allocations: 76.27 kB / 412.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.2229, allocations: 116.1 kB / 413 MB, free: 22.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2229, allocations: 0 / 413 MB, free: 22.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002418/0.2231, allocations: 145.4 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2231, allocations: 12.12 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2231, allocations: 0 / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2232, allocations: 4 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.2233, allocations: 31.92 kB / 413.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2233, allocations: 4 kB / 413.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.738e-05/0.2234, allocations: 11.98 kB / 413.2 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.2234, allocations: 8 kB / 413.2 MB, free: 22.23 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 5.311e-05/0.2235, allocations: 121.8 kB / 413.3 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.2235, allocations: 7.906 kB / 413.4 MB, free: 22.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.2235, allocations: 8.375 kB / 413.4 MB, free: 22.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.2235, allocations: 7.984 kB / 413.4 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2235, allocations: 0 / 413.4 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2236, allocations: 3.984 kB / 413.4 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.2237, allocations: 201.5 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2237, allocations: 0 / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.2238, allocations: 27.97 kB / 413.6 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2238, allocations: 4 kB / 413.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.2239, allocations: 4 kB / 413.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2239, allocations: 0 / 413.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2239, allocations: 0 / 413.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.2242, allocations: 255.6 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.097e-05/0.2242, allocations: 81.02 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.2242, allocations: 7.938 kB / 413.9 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.278e-05/0.2243, allocations: 8.031 kB / 413.9 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/0.2244, allocations: 11.94 kB / 414 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.2244, allocations: 11.98 kB / 414 MB, free: 21.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.31e-05/0.2244, allocations: 98.36 kB / 414.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2244, allocations: 0 / 414.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002157/0.2247, allocations: 23.91 kB / 414.1 MB, free: 21.27 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.512e-05/0.2247, allocations: 103.2 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.225, allocations: 95.98 kB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.225, allocations: 0 / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.871e-05/0.2251, allocations: 43.91 kB / 414.3 MB, free: 21.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.2254, allocations: 22.33 kB / 414.3 MB, free: 21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004981/0.2259, allocations: 451.2 kB / 414.8 MB, free: 20.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.226, allocations: 0.7043 MB / 415.5 MB, free: 19.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.226, allocations: 11.44 kB / 415.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2261, allocations: 0 / 415.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of Templates: time 0.001981/0.228, allocations: 1.247 MB / 416.8 MB, free: 18.54 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