Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002935/0.002935, allocations: 69.02 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1269, allocations: 50.53 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00421/0.1312, allocations: 1.899 MB / 360.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.1336, allocations: 1.185 MB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.1339, allocations: 7.938 kB / 361.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007445/0.1346, allocations: 150.9 kB / 361.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005236/0.1352, allocations: 155.4 kB / 361.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.1358, allocations: 171.4 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003499/0.1362, allocations: 187.5 kB / 362.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1363, allocations: 37.45 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.1365, allocations: 75.7 kB / 362.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.1367, allocations: 71.69 kB / 362.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.556e-05/0.1367, allocations: 8 kB / 362.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.1369, allocations: 55.91 kB / 362.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-05/0.137, allocations: 43.84 kB / 362.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.1372, allocations: 75.48 kB / 362.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004132/0.1376, allocations: 203.6 kB / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1376, allocations: 4 kB / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1376, allocations: 0 / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.1376, allocations: 0 / 362.7 MB, free: 9.617 MB / 302.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.0009005/0.1386, allocations: 0.5118 MB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1386, allocations: 8.031 kB / 363.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.1387, allocations: 24.66 kB / 363.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.139, allocations: 270.8 kB / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.1391, allocations: 4.375 kB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.1391, allocations: 12.12 kB / 363.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.1395, allocations: 146.7 kB / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1395, allocations: 0 / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.1395, allocations: 15.92 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.1395, allocations: 3.938 kB / 363.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.759e-05/0.1396, allocations: 27.98 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005361/0.1402, allocations: 370.3 kB / 364.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.1404, allocations: 107.9 kB / 364.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.623e-05/0.1405, allocations: 42.56 kB / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.1405, allocations: 0 / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.1407, allocations: 75.33 kB / 364.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.1407, allocations: 0 / 364.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003751/0.1411, allocations: 149.4 kB / 364.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.1412, allocations: 132.5 kB / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003486/0.1416, allocations: 272.9 kB / 364.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.1416, allocations: 33.7 kB / 364.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.92e-05/0.1417, allocations: 112.1 kB / 365 MB, free: 7.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.536e-05/0.1418, allocations: 16 kB / 365 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.567e-05/0.1418, allocations: 37.7 kB / 365.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.142, allocations: 330.8 kB / 365.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-05/0.1421, allocations: 23.98 kB / 365.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.1422, allocations: 69.88 kB / 365.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.1424, allocations: 80.25 kB / 365.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1424, allocations: 4 kB / 365.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002203/0.1426, allocations: 109.4 kB / 365.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.1426, allocations: 7.938 kB / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1427, allocations: 8.125 kB / 365.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1427, allocations: 0 / 365.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.868e-05/0.1428, allocations: 15.98 kB / 365.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.1428, allocations: 0 / 365.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.878e-05/0.1429, allocations: 11.84 kB / 365.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.1429, allocations: 4 kB / 365.7 MB, free: 6.293 MB / 302.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.0001554/0.143, allocations: 143.4 kB / 365.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1431, allocations: 65.53 kB / 365.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.023e-05/0.1432, allocations: 25.7 kB / 365.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1432, allocations: 4 kB / 366 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1432, allocations: 0 / 366 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1432, allocations: 3.938 kB / 366 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.1435, allocations: 233.8 kB / 366.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1435, allocations: 0 / 366.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.414e-05/0.1435, allocations: 19.92 kB / 366.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1436, allocations: 0 / 366.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.1436, allocations: 4 kB / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1436, allocations: 0 / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1436, allocations: 4.031 kB / 366.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.1439, allocations: 158.5 kB / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.144, allocations: 104.9 kB / 366.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.144, allocations: 4 kB / 366.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.933e-05/0.1441, allocations: 4 kB / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.1441, allocations: 11.98 kB / 366.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.1442, allocations: 7.938 kB / 366.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.1444, allocations: 200.5 kB / 366.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1444, allocations: 0 / 366.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.1447, allocations: 35.91 kB / 366.7 MB, free: 5.176 MB / 302.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.001518/0.1462, allocations: 419.9 kB / 367.1 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.1464, allocations: 79.84 kB / 367.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1464, allocations: 0 / 367.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.529e-05/0.1465, allocations: 23.98 kB / 367.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.1469, allocations: 69.17 kB / 367.3 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006613/0.1476, allocations: 346.8 kB / 367.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.148, allocations: 0.7319 MB / 368.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.139e-05/0.1481, allocations: 27.38 kB / 368.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1481, allocations: 0 / 368.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of Templates: time 0.005201/0.1533, allocations: 2.637 MB / 371 MB, free: 0.9609 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches