Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009294/0.0009294, allocations: 193.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.342/1.342, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008792/0.0008792, allocations: 96.11 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002612/0.0002613, allocations: 7.938 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2255, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.001689/0.2272, allocations: 1.575 MB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.2286, allocations: 1.184 MB / 410.3 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2287, allocations: 0.5312 kB / 410.3 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.229, allocations: 57.48 kB / 410.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.2292, allocations: 103.6 kB / 410.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.2298, allocations: 223 kB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.2299, allocations: 152.4 kB / 410.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.174e-05/0.23, allocations: 30.94 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.398e-05/0.2301, allocations: 63.64 kB / 410.9 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.93e-05/0.2302, allocations: 64.44 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.2302, allocations: 4 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.2303, allocations: 48.47 kB / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.545e-05/0.2304, allocations: 54.64 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.801e-05/0.2304, allocations: 53.58 kB / 411.1 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.2306, allocations: 184.6 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2306, allocations: 0 / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2306, allocations: 0 / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.2306, allocations: 0 / 411.3 MB, free: 24.04 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005234/0.2312, allocations: 0.5023 MB / 411.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2312, allocations: 8.031 kB / 411.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.087e-05/0.2313, allocations: 23.72 kB / 411.8 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.2315, allocations: 282.4 kB / 412.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.2315, allocations: 4 kB / 412.1 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2316, allocations: 4 kB / 412.1 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.2318, allocations: 159.5 kB / 412.2 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.2319, allocations: 0 / 412.2 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2319, allocations: 8 kB / 412.3 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2319, allocations: 0 / 412.3 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.759e-05/0.232, allocations: 35.92 kB / 412.3 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004026/0.2324, allocations: 386.3 kB / 412.7 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.2326, allocations: 119.9 kB / 412.8 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.149e-05/0.2327, allocations: 46.56 kB / 412.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2327, allocations: 4 kB / 412.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001595/0.2329, allocations: 75.38 kB / 412.9 MB, free: 22.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.2329, allocations: 0 / 412.9 MB, free: 22.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003179/0.2332, allocations: 157.3 kB / 413.1 MB, free: 22.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.2333, allocations: 158.2 kB / 413.2 MB, free: 21.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.2335, allocations: 338.6 kB / 413.5 MB, free: 21.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.2336, allocations: 25.95 kB / 413.6 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.2336, allocations: 136.1 kB / 413.7 MB, free: 21.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.2337, allocations: 23.73 kB / 413.7 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.2337, allocations: 0 / 413.7 MB, free: 21.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.201e-05/0.2337, allocations: 338.8 kB / 414.1 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-05/0.2338, allocations: 23.98 kB / 414.1 MB, free: 20.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.763e-05/0.2339, allocations: 90.78 kB / 414.2 MB, free: 20.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.964e-05/0.234, allocations: 28 kB / 414.2 MB, free: 20.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.234, allocations: 0 / 414.2 MB, free: 20.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001846/0.2342, allocations: 129.2 kB / 414.3 MB, free: 20.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.2342, allocations: 8.125 kB / 414.3 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2342, allocations: 3.984 kB / 414.3 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.2342, allocations: 8.031 kB / 414.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-05/0.2343, allocations: 16 kB / 414.4 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2343, allocations: 0 / 414.4 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.246e-05/0.2344, allocations: 11.98 kB / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.2344, allocations: 4 kB / 414.4 MB, free: 20.61 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: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.462e-05/0.2345, allocations: 153.7 kB / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.337e-05/0.2346, allocations: 69.41 kB / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.2346, allocations: 33.64 kB / 414.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.2346, allocations: 0 / 414.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2347, allocations: 0 / 414.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2347, allocations: 4 kB / 414.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.2348, allocations: 249.5 kB / 414.9 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2348, allocations: 0 / 414.9 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.816e-05/0.2349, allocations: 8 kB / 414.9 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2349, allocations: 4 kB / 414.9 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.2349, allocations: 0 / 414.9 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.2349, allocations: 8.375 kB / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2349, allocations: 3.984 kB / 414.9 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.2351, allocations: 162.4 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.191e-05/0.2352, allocations: 124.8 kB / 415.2 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.2352, allocations: 3.984 kB / 415.2 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.762e-05/0.2353, allocations: 12 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.2354, allocations: 7.984 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.2354, allocations: 4 kB / 415.2 MB, free: 19.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001695/0.2356, allocations: 249.9 kB / 415.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2356, allocations: 0 / 415.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002223/0.2358, allocations: 32 kB / 415.5 MB, free: 19.4 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.0007476/0.2365, allocations: 422.8 kB / 415.9 MB, free: 19.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001864/0.2367, allocations: 79.91 kB / 416 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2367, allocations: 0 / 416 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.686e-05/0.2368, allocations: 27.98 kB / 416 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.2372, allocations: 60.75 kB / 416.1 MB, free: 18.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004597/0.2376, allocations: 438.6 kB / 416.5 MB, free: 18.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.2378, allocations: 0.7439 MB / 417.2 MB, free: 17.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.2378, allocations: 19.44 kB / 417.2 MB, free: 17.7 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2378, allocations: 0 / 417.2 MB, free: 17.7 MB / 298.7 MB Notification: Performance of Templates: time 0.003696/0.2415, allocations: 2.932 MB / 420.2 MB, free: 14.79 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches