Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001199/0.001199, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 203.8 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4157, allocations: 50.54 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003795/0.4196, allocations: 1.909 MB / 411.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.4217, allocations: 1.185 MB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.422, allocations: 7.938 kB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006886/0.4227, allocations: 151.5 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004605/0.4231, allocations: 151.4 kB / 412.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005167/0.4237, allocations: 167.5 kB / 412.8 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.424, allocations: 195.5 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.4241, allocations: 17.56 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.4242, allocations: 83.62 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.4244, allocations: 75.67 kB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.4244, allocations: 15.94 kB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.4245, allocations: 55.98 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.351e-05/0.4246, allocations: 43.83 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.814e-05/0.4247, allocations: 71.48 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.4251, allocations: 215 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.4251, allocations: 0 / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4251, allocations: 0 / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.433e-06/0.4251, allocations: 0 / 413.5 MB, free: 13.25 MB / 334.1 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.0007911/0.4259, allocations: 0.5131 MB / 414.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4259, allocations: 12.03 kB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.485e-05/0.426, allocations: 20.75 kB / 414.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.4264, allocations: 274.7 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.4264, allocations: 8.375 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.4264, allocations: 16.05 kB / 414.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.4267, allocations: 150.7 kB / 414.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.4268, allocations: 4 kB / 414.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.4268, allocations: 0 / 414.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.4268, allocations: 0 / 414.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.934e-05/0.4269, allocations: 31.92 kB / 414.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004713/0.4274, allocations: 366.5 kB / 414.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.4276, allocations: 103.9 kB / 415 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.855e-05/0.4277, allocations: 50.56 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.4277, allocations: 3.938 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.4279, allocations: 71.39 kB / 415.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.4279, allocations: 0 / 415.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003579/0.4283, allocations: 145.5 kB / 415.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.777e-05/0.4284, allocations: 136.5 kB / 415.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.4287, allocations: 273 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.4287, allocations: 29.7 kB / 415.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.4288, allocations: 120 kB / 415.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.4288, allocations: 7.906 kB / 415.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.815e-05/0.4289, allocations: 41.55 kB / 415.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4291, allocations: 330.8 kB / 416.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.2e-05/0.4291, allocations: 23.98 kB / 416.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.901e-05/0.4292, allocations: 70 kB / 416.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.4294, allocations: 80.25 kB / 416.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4294, allocations: 0 / 416.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002029/0.4296, allocations: 117.7 kB / 416.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4296, allocations: 8 kB / 416.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4296, allocations: 0 / 416.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.4296, allocations: 0 / 416.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.744e-05/0.4297, allocations: 24.05 kB / 416.5 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.4297, allocations: 0 / 416.5 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.868e-05/0.4298, allocations: 19.88 kB / 416.5 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.4298, allocations: 0 / 416.5 MB, free: 9.914 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.43, allocations: 145.8 kB / 416.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.234e-05/0.43, allocations: 65.34 kB / 416.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/0.4301, allocations: 21.72 kB / 416.8 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.4301, allocations: 8.047 kB / 416.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4301, allocations: 4 kB / 416.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.4301, allocations: 3.938 kB / 416.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.4303, allocations: 225.7 kB / 417 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4303, allocations: 0 / 417 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-05/0.4304, allocations: 7.984 kB / 417 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.4304, allocations: 0 / 417 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.4304, allocations: 7.938 kB / 417 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4304, allocations: 0 / 417 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4304, allocations: 0 / 417 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.4307, allocations: 162.4 kB / 417.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.725e-05/0.4308, allocations: 108.8 kB / 417.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.4308, allocations: 8 kB / 417.3 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.747e-05/0.4309, allocations: 11.88 kB / 417.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.4309, allocations: 3.984 kB / 417.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.431, allocations: 7.938 kB / 417.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002094/0.4312, allocations: 208.5 kB / 417.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4312, allocations: 0 / 417.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002509/0.4314, allocations: 24 kB / 417.5 MB, free: 8.801 MB / 334.1 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,sample1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/0.4325, allocations: 411.3 kB / 418 MB, free: 8.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.4327, allocations: 67.91 kB / 418 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4327, allocations: 256 / 418 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.364e-05/0.4328, allocations: 31.94 kB / 418 MB, free: 8.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.4332, allocations: 63.47 kB / 418.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006102/0.4338, allocations: 324.6 kB / 418.4 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.4343, allocations: 0.7321 MB / 419.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.368e-05/0.4344, allocations: 25.53 kB / 419.2 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.4344, allocations: 15.44 kB / 419.2 MB, free: 7.227 MB / 334.1 MB Notification: Performance of SimCode: time 4.548e-06/0.4345, allocations: 0 / 419.2 MB, free: 7.227 MB / 334.1 MB Notification: Performance of Templates: time 0.00654/0.441, allocations: 2.447 MB / 421.6 MB, free: 4.801 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches