Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001489/0.001495, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001909/0.001909, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.73 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003325/0.1195, allocations: 1.916 MB / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.1216, allocations: 1.212 MB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.1217, allocations: 4 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000623/0.1223, allocations: 159.5 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.1227, allocations: 155.4 kB / 362.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004802/0.1232, allocations: 174.8 kB / 362.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002623/0.1235, allocations: 199.4 kB / 362.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.1236, allocations: 45.64 kB / 362.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.1238, allocations: 79.58 kB / 362.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.1239, allocations: 75.69 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.1239, allocations: 8 kB / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.1241, allocations: 59.95 kB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.925e-05/0.1241, allocations: 43.84 kB / 363 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.828e-05/0.1242, allocations: 79.42 kB / 363.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.1245, allocations: 219.2 kB / 363.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1245, allocations: 0 / 363.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1245, allocations: 4 kB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.1245, allocations: 0 / 363.3 MB, free: 8.887 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007164/0.1253, allocations: 0.5156 MB / 363.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1253, allocations: 12.03 kB / 363.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.29e-05/0.1254, allocations: 20.66 kB / 363.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.1257, allocations: 282.7 kB / 364.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.1257, allocations: 4.375 kB / 364.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.1258, allocations: 12.12 kB / 364.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.1261, allocations: 167.5 kB / 364.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1261, allocations: 0 / 364.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.1261, allocations: 4 kB / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1262, allocations: 0 / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.1263, allocations: 39.92 kB / 364.4 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005753/0.1269, allocations: 454.5 kB / 364.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.1271, allocations: 138.5 kB / 364.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1273, allocations: 55.42 kB / 365 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.1273, allocations: 4 kB / 365 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001786/0.1275, allocations: 97.09 kB / 365.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.1275, allocations: 4 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003966/0.1279, allocations: 157.2 kB / 365.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.128, allocations: 158.2 kB / 365.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.1283, allocations: 277 kB / 365.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.1283, allocations: 29.7 kB / 365.7 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.1284, allocations: 128.7 kB / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.1285, allocations: 15.81 kB / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.1285, allocations: 29.7 kB / 365.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1286, allocations: 338.8 kB / 366.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.509e-05/0.1287, allocations: 20 kB / 366.2 MB, free: 5.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1289, allocations: 82.84 kB / 366.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.129, allocations: 93.02 kB / 366.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.129, allocations: 3.938 kB / 366.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002177/0.1292, allocations: 129.4 kB / 366.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1293, allocations: 8 kB / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1293, allocations: 0 / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1293, allocations: 4 kB / 366.5 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.087e-05/0.1294, allocations: 11.98 kB / 366.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.1294, allocations: 7.938 kB / 366.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.419e-05/0.1295, allocations: 19.78 kB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1295, allocations: 4 kB / 366.6 MB, free: 5.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.1296, allocations: 150.2 kB / 366.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.694e-05/0.1297, allocations: 77.34 kB / 366.8 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.08e-05/0.1298, allocations: 25.7 kB / 366.8 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1298, allocations: 4 kB / 366.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1298, allocations: 4 kB / 366.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1298, allocations: 3.938 kB / 366.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.13, allocations: 225.6 kB / 367.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.13, allocations: 64 / 367.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.556e-05/0.13, allocations: 16 kB / 367.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1301, allocations: 0 / 367.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.1301, allocations: 4 kB / 367.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1301, allocations: 0 / 367.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.1301, allocations: 7.922 kB / 367.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.1304, allocations: 183.3 kB / 367.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1305, allocations: 108.8 kB / 367.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.1305, allocations: 4 kB / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.039e-05/0.1306, allocations: 7.938 kB / 367.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.1306, allocations: 11.92 kB / 367.4 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.1307, allocations: 8 kB / 367.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.1309, allocations: 200.5 kB / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1309, allocations: 0 / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002553/0.1311, allocations: 32 kB / 367.6 MB, free: 4.078 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.0009246/0.1321, allocations: 416.2 kB / 368 MB, free: 3.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.1323, allocations: 79.84 kB / 368.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1323, allocations: 0 / 368.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.605e-05/0.1324, allocations: 35.92 kB / 368.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.1328, allocations: 67.86 kB / 368.2 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005458/0.1333, allocations: 333.5 kB / 368.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.1337, allocations: 0.7398 MB / 369.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.024e-05/0.1337, allocations: 29.52 kB / 369.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.1338, allocations: 19.44 kB / 369.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1338, allocations: 0 / 369.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of Templates: time 0.1899/0.3237, allocations: 2.549 MB / 371.9 MB, free: 19.84 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches