Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001212/0.001212, allocations: 115.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 199.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.609/1.609, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 60.94 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1086, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003756/0.1124, allocations: 1.908 MB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.1145, allocations: 1.317 MB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.1146, allocations: 7.938 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000302/0.115, allocations: 71.59 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000338/0.1153, allocations: 135.4 kB / 362.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006253/0.116, allocations: 234.6 kB / 362.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002502/0.1162, allocations: 191.5 kB / 362.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1164, allocations: 29.67 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.1165, allocations: 87.61 kB / 362.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.1166, allocations: 87.56 kB / 363 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.1166, allocations: 12 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.1168, allocations: 67.94 kB / 363 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.729e-05/0.1169, allocations: 47.84 kB / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.038e-05/0.117, allocations: 83.42 kB / 363.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.1174, allocations: 267 kB / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1174, allocations: 0 / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1174, allocations: 0 / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1174, allocations: 0 / 363.4 MB, free: 8.812 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.00101/0.1184, allocations: 0.5467 MB / 364 MB, free: 8.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.1185, allocations: 12.03 kB / 364 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.747e-05/0.1186, allocations: 24.56 kB / 364 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.1191, allocations: 299.5 kB / 364.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.1192, allocations: 12.36 kB / 364.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.1192, allocations: 8.125 kB / 364.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004438/0.1196, allocations: 188.3 kB / 364.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1197, allocations: 0 / 364.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.1197, allocations: 8 kB / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1197, allocations: 0 / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.1199, allocations: 43.91 kB / 364.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006449/0.1205, allocations: 391.2 kB / 364.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.1208, allocations: 146.5 kB / 365.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.1209, allocations: 55.42 kB / 365.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-05/0.121, allocations: 7.984 kB / 365.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.1212, allocations: 75.39 kB / 365.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.703e-06/0.1212, allocations: 3.938 kB / 365.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004373/0.1216, allocations: 169.3 kB / 365.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.1218, allocations: 200.2 kB / 365.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003832/0.1222, allocations: 335 kB / 365.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.1222, allocations: 33.7 kB / 365.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.1224, allocations: 136.3 kB / 366.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.1224, allocations: 19.81 kB / 366.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.488e-05/0.1225, allocations: 33.7 kB / 366.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1226, allocations: 342.8 kB / 366.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.669e-05/0.1227, allocations: 27.98 kB / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.1228, allocations: 100.6 kB / 366.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.123, allocations: 105.8 kB / 366.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.123, allocations: 0 / 366.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002502/0.1233, allocations: 141.7 kB / 366.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1233, allocations: 8.031 kB / 366.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1233, allocations: 4 kB / 366.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1234, allocations: 0 / 366.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.1235, allocations: 31.92 kB / 366.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.1235, allocations: 0 / 366.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.1236, allocations: 15.94 kB / 366.9 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.1236, allocations: 4 kB / 366.9 MB, free: 4.953 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,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.000175/0.1238, allocations: 161.7 kB / 367 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.1239, allocations: 85.34 kB / 367.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.513e-05/0.124, allocations: 29.73 kB / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.124, allocations: 0 / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.124, allocations: 0 / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.124, allocations: 7.938 kB / 367.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.1242, allocations: 249.4 kB / 367.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1243, allocations: 4 kB / 367.4 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.109e-05/0.1243, allocations: 15.98 kB / 367.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1243, allocations: 0 / 367.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.1244, allocations: 8.094 kB / 367.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1244, allocations: 3.938 kB / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1244, allocations: 0 / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/0.1247, allocations: 183.3 kB / 367.6 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.1248, allocations: 116.8 kB / 367.7 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.1248, allocations: 8.047 kB / 367.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7e-05/0.1249, allocations: 11.98 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.084e-05/0.125, allocations: 7.984 kB / 367.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.125, allocations: 7.938 kB / 367.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002314/0.1252, allocations: 253.9 kB / 368 MB, free: 3.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1252, allocations: 0 / 368 MB, free: 3.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002634/0.1255, allocations: 32 kB / 368 MB, free: 3.676 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,backSample1.y,shiftSample1.y,backSample1.u,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.001002/0.1265, allocations: 439.9 kB / 368.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002418/0.1268, allocations: 83.89 kB / 368.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1268, allocations: 0 / 368.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.379e-05/0.1269, allocations: 31.92 kB / 368.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.1273, allocations: 77.41 kB / 368.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006786/0.128, allocations: 407.5 kB / 369.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1284, allocations: 0.7437 MB / 369.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.88e-05/0.1285, allocations: 33.52 kB / 369.8 MB, free: 1.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.414e-05/0.1285, allocations: 23.44 kB / 369.9 MB, free: 1.938 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1285, allocations: 0 / 369.9 MB, free: 1.938 MB / 302.1 MB Notification: Performance of Templates: time 0.1993/0.3279, allocations: 3.062 MB / 372.9 MB, free: 19.2 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches